Guest User

Untitled

a guest
Apr 25th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #
  2. # large.json contains a giant object: {"foo":"bar","far":"boo"}
  3. #
  4. >>> fd = open('large.json', 'r')
  5. >>> for k, v in yajl.iterload(fd):
  6. ... # stuff
  7. >>> fd.close()
  8.  
  9. #
  10. # largelist.json contains a giant list of items: [1,2,3,4]
  11. #
  12. >>> fd = open('largelist.json', 'r')
  13. >>> for elem in yajl.iterload(fd):
  14. ... # stuff
  15. >>> fd.close()
Add Comment
Please, Sign In to add comment