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 Gallaecio
Recipients Gallaecio
Date 2013-09-07.12:33:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378557195.07.0.581794298686.issue18958@psf.upfronthosting.co.za>
In-reply-to
Content
Calling json.load() with a file object or json.loads() with a string containing the attached JSON code raises an exception with the message 'No JSON object could be decoded'.

I’ve pasted the JSON code into http://jsonlint.com/ and it reports it as valid JSON.

This JSON code comes from the 0 A.D. game (https://github.com/0ad/0ad/blob/master/binaries/data/mods/public/civs/maur.json), and the game successfully parses it as well (with whatever they use for that). Yet it fails with json.load() and json.loads().

Note also that the rest of the JSON files of the same game folder (https://github.com/0ad/0ad/tree/master/binaries/data/mods/public/civs) do work with json.load() and json.loads().
History
Date User Action Args
2013-09-07 12:33:15Gallaeciosetrecipients: + Gallaecio
2013-09-07 12:33:15Gallaeciosetmessageid: <1378557195.07.0.581794298686.issue18958@psf.upfronthosting.co.za>
2013-09-07 12:33:15Gallaeciolinkissue18958 messages
2013-09-07 12:33:14Gallaeciocreate