How to parse JSON directly from a stream of a TAR file?

Feb 8, 2016 at 7:18 AM
Hi,
I am trying to read JSON directly from a tar file.
The parser starts reading the root object and parses though all the JSON tree until it finds the closing brace. But then it tries to read the next token and fails because the next char in the tar file is 0x00 and not EOF.

Is there a way to make the parser stop after the root object. Or to limit the bytes read from the stream while parsing?

Because it feels wrong to first load the file into a string and then parse that string in a 2nd step.