json-stream
json-stream copied to clipboard
Iterating over a JSON file
First of all: this library is awesome.
Question: is it possible to create some sort of iterator based on this?
thanks, I guess it's possible, but rewind will work just once :)
Just as I thought. However I think adding a reset method would make sense which should do the following:
- Reset the stream
- Reset the tokenizer
- Reset the token
Doing this would allow to reread the file without recreating the Reader/opening multiple streams to the same file.
Just in case you are interested: I am working on a JSON Reader/Writer for this package: https://github.com/ddeboer/data-import