-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i have a json file that combine with a lot of dict? how can i using ijson.items to one by one get dict? #51
Comments
@faker09 you'll need to provide more details, otherwise it's nearly impossible to give any advice. Also look if any ijson questions in StackOverflow cover what you need. |
because my json file is too large(8GB), i wanna use ijson.items to read this file. below example
|
i means that if i use
it don't output anything |
@faker09 the problem is you are passing ijson the filename instead of a file object. You need to open your file yourself, then give the resulting file object to ijson. |
sorry, i use a confusing parameter name. actually, i opened a file and pass a file object to ijson.items() |
@faker09 can you please then provide a cleaner extract of your JSON file? In particular, how does the file start? I get the impression you have a file with multiple top-level JSON objects instead of a single one, in which case you'll need to use an empty prefix and |
Closing for lack of clearer explanations. |
No description provided.
The text was updated successfully, but these errors were encountered: