Skip to content

Instantly share code, notes, and snippets.

@vanessasoutoc
Created April 27, 2017 14:18
Show Gist options
  • Save vanessasoutoc/e82a76fc7d3e45dade9ca4315c0e4b40 to your computer and use it in GitHub Desktop.
Save vanessasoutoc/e82a76fc7d3e45dade9ca4315c0e4b40 to your computer and use it in GitHub Desktop.
Read large json in python with ijson
import ijson
jsonData = ijson.items(open('file_path/file.json', encoding='latin-1'), 'DESPESA.item')
for prefix in jsonData:
for key,value in prefix.items():
print('key: ', key)
print(' value: ', value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment