[]] doesn't throw an error #51

ghost opened this Issue Jul 24, 2012 · 2 comments

1 participant

>>> ujson.loads('[]]')
>>> json.loads('[]]')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 369, in decode
    raise ValueError(errmsg("Extra data", s, end, len(s)))
ValueError: Extra data: line 1 column 2 - line 1 column 3 (char 2 - 3)
ESN Social Software member

Yes, that is a JSON conformance issue. I'll look into this one shortly

ESN Social Software member

Fixed in Master

@jskorpan jskorpan closed this Aug 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment