diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-01-23 18:36:28 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-01-23 18:41:29 +0200 |
commit | 444331c07f47488325986e375ea6b1838f06685d (patch) | |
tree | a7710c7af0f48b829e7afb43cc5acb6bfad5e679 /extmod/modujson.c | |
parent | 1f04336b23088999ca572fac0b90bc25b954170c (diff) |
modujson: .loads(): Handle more whitespace characters.
Diffstat (limited to 'extmod/modujson.c')
-rw-r--r-- | extmod/modujson.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extmod/modujson.c b/extmod/modujson.c index 70daf8104..5023d8151 100644 --- a/extmod/modujson.c +++ b/extmod/modujson.c @@ -81,6 +81,9 @@ STATIC mp_obj_t mod_ujson_loads(mp_obj_t obj) { case ',': case ':': case ' ': + case '\t': + case '\n': + case '\r': s += 1; goto cont; case 'n': |