DEV Community

Discussion on: Flattening JSON in JSON.NET

Collapse
 
lluismf profile image
Lluís Josep Martínez

I don't know if there's something like a JSON streaming parser (in Java there's a SAX streaming parser).

If it exists, a single loop plus a stack should be enough to get the desired output.
And the memory consumption would be O(1).