Python Gotcha's?

Steve Howell showell30 at yahoo.com
Thu Apr 5 10:32:19 EDT 2012


On Apr 5, 5:32 am, Roy Smith <r... at panix.com> wrote:
> [...] Nobody expects
> that a JSON parser will be parsing human-written input, [...]

Humans write JSON all the time.  People use JSON as a configuration
language, and some people actually write JSON files by hand.  A common
example would be writing package.json for an npm package.

Here are a couple examples:

  https://github.com/jashkenas/coffee-script/blob/master/package.json
  https://github.com/github/hubot/blob/master/package.json

> so there's little value to saying anything more than "parse error".

So, there's little value to say anything more than "parse
error"...except to help all those dumb humans that expect JSON to be
human-writable. ;)




More information about the Python-list mailing list