Created
April 27, 2017 14:18
-
-
Save vanessasoutoc/e82a76fc7d3e45dade9ca4315c0e4b40 to your computer and use it in GitHub Desktop.
Read large json in python with ijson
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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