I am wondering what to do about large files of JSON.
I don't want to store them in memory so I don't want to do JsonNode
s because I think that stores the entire tree in memory.
My other idea was using TokenBuffer
. However, I'm wondering how this works. Does the TokenBuffer
store the entire document as well ? Is there a max limit. I know that it's a performance best practice but if I do:
TokenBuffer buff = jParser.readValueAs(TokenBuffer.class);
It seems like it reads the whole document at once (which I don't want).