Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # large.json contains a giant object: {"foo":"bar","far":"boo"}
- #
- >>> fd = open('large.json', 'r')
- >>> for k, v in yajl.iterload(fd):
- ... # stuff
- >>> fd.close()
- #
- # largelist.json contains a giant list of items: [1,2,3,4]
- #
- >>> fd = open('largelist.json', 'r')
- >>> for elem in yajl.iterload(fd):
- ... # stuff
- >>> fd.close()
Add Comment
Please, Sign In to add comment