[Python-ideas] iterator/stream-based JSON API

Daniel Holth dholth at gmail.com
Mon Jun 3 04:11:23 CEST 2013


When will the stdlib get a decent iterator/stream-based JSON API? For
example automated packaging tools may be parsing a lot of JSON but
ignoring most of it, and it would be lovely to say "if key not in
interesting: skip_without_parsing()". Or to go straight from parse to
domain objects without putting the whole thing in an intermediate
dict.

http://code.google.com/p/jsonpull/ is a nice looking but woefully
undocumented Java one, and https://crate.io/packages/ijson/ is one
with a much different API that is for Python.


More information about the Python-ideas mailing list