You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really helpful to have a simple basic canonical example of how to parse a large JSON file that consists of an arbitrary number of objects in an array. Ideally, that would be a generator pattern, so streaming can be aborted at will, and items iterated through with a for loop like with Python's ijson library:
It looks good. I would suggest to describe what kind of input is expected. It makes the code more transparent. I plan to put a similar example (or the same one) at the top of README.
PS: make sure that the example actually runs. Non-working examples damage credibility.
The README for this module is a bit daunting... lots of people are looking simply to parse a large JSON file and get objects one by one:
It would be really helpful to have a simple basic canonical example of how to parse a large JSON file that consists of an arbitrary number of objects in an array. Ideally, that would be a generator pattern, so streaming can be aborted at will, and items iterated through with a
for
loop like with Python's ijson library:The text was updated successfully, but these errors were encountered: