json-streaming-parser
json-streaming-parser copied to clipboard
Bugfix/minor issues fixed
Fixed 2 bugs:
- I was planning to use an API with this library that had objects as items of an array, and it failed to parse properly.
- Also I got multiple startDocument() calls each time, which was the result of a whitespace character in the beginning of the stream it's a minor bug, but annoying.
I added an example to test these cases, and more