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 pitrou
Recipients Balthazar.Rouberol, antlong, barry, docs@python, eric.araujo, ezio.melotti, georg.brandl, hhas, pitrou, r.david.murray, serhiy.storchaka
Date 2012-04-26.14:21:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335450012.3421.4.camel@localhost.localdomain>
In-reply-to <1335449266.36.0.187593044345.issue10976@psf.upfronthosting.co.za>
Content
> Things are a little more complicated. '123' is not a valid JSON
> according to RFC 4627 (the top-level element can only be an object or
> an array). This means that the autodetection algorithm will not always
> work for such non-standard data.

The autodetection algorithm needn't examine all 4 first bytes. If the 2
first bytes are non-zero, you have UTF-8 data. Otherwise, the JSON text
will be at least 4 bytes long (since it's either UTF-16 or UTF-32).
History
Date User Action Args
2012-04-26 14:21:40pitrousetrecipients: + pitrou, barry, georg.brandl, hhas, ezio.melotti, eric.araujo, r.david.murray, docs@python, antlong, serhiy.storchaka, Balthazar.Rouberol
2012-04-26 14:21:40pitroulinkissue10976 messages
2012-04-26 14:21:39pitroucreate