JSON River – Parse JSON incrementally as it streams in
1–10 of 101 posts
Re: JSON River – Parse JSON incrementally as it streams in
#2The benefit with that was that you didn't need the memory to store the deserialized JSON object in memory.
This seems to be more oriented towards interactivity, which is an interesting use-case I hadn't thought about.
Re: JSON River – Parse JSON incrementally as it streams in
#3I wrote a more traditional JSON parser for my microcontooller project. You could iterate over elements and it would return "needs more data" if it was unable to proceed. You could then call it again after fetching more. Then just simple state machines to consume the objects. The benefit with that was that you didn't need the memory to store the deserialized JSON object in memory. This seems to be more oriented toward…
Re: JSON River – Parse JSON incrementally as it streams in
#4I would expect an object JSON stream to be more like a SAX parser though. It's familiar, fast and simple.
Any thougts on not chosing the SAX approach?
Re: JSON River – Parse JSON incrementally as it streams in
#5Interesting approach. I would expect an object JSON stream to be more like a SAX parser though. It's familiar, fast and simple. Any thougts on not chosing the SAX approach?
Re: JSON River – Parse JSON incrementally as it streams in
#6Re: JSON River – Parse JSON incrementally as it streams in
#7Re: JSON River – Parse JSON incrementally as it streams in
#8I can't imagine a usecase. Ok, you receive incremental updates, which could be useful, but how to find out that json object is actually received in full already?
EDIT: this is totally wrong and the question is right.