json parser in python - stream-based?

Martin Langhoff martin.langhoff at gmail.com
Thu May 21 03:27:46 EDT 2009

On Wed, May 20, 2009 at 12:15 PM, Martin Langhoff
<martin.langhoff at gmail.com> wrote:
> I'm looking for a json parser that is stream (+callbacks) oriented so
> I can read through a larger-than-memory json file and only actuall
> read into memory the parts of it I'm interested in. Big plus if it's
> pure python or based on hooks to the existing json parser.

I've attached a (small) sample file. It's a json encoded 'dictionary',
and what I'm hoping for is to only extract the 'value' parts that
correspond to the key I'm looking for. Michael suggested it might help
visualize the problem.


 martin.langhoff at gmail.com
 martin at laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lease.sig
Type: application/octet-stream
Size: 6390 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20090521/3a301b0a/attachment.obj>

More information about the Devel mailing list