This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Luka.Rahne
Recipients Luka.Rahne
Date 2012-09-23.17:14:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348420465.53.0.405036591258.issue16009@psf.upfronthosting.co.za>
In-reply-to
Content
Example:

import json
j = json.loads(
"""
{
    "phoneNumber": [
        {
            "type": "home",
            "number": "212 555-1234"
        },
}

""")
print(j)

Output>>
Traceback (most recent call last):
  File "<stdin>", line 13, 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 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded


My comment:
It is annoying in case of manual json editing where you can't know where jeson typeing error is.
History
Date User Action Args
2012-09-23 17:14:25Luka.Rahnesetrecipients: + Luka.Rahne
2012-09-23 17:14:25Luka.Rahnesetmessageid: <1348420465.53.0.405036591258.issue16009@psf.upfronthosting.co.za>
2012-09-23 17:14:24Luka.Rahnelinkissue16009 messages
2012-09-23 17:14:23Luka.Rahnecreate