Description
EDIT see #33030 (comment) for an API proposal
Apologies if this ticket has been created but I missed it or there's a flag that I missed. I looked around but didn't find a good match.
I work in BigData and a common scenario is that we have large files that contains JSON documents separated by newline like so:
{}
[]
{}
This is not a valid JSON document obviously but it would help me a lot if the Utf8JsonReader
could be configured to process a sequence of JSON documents like this.
My alternatives are to read line by line (forcing me to parse the data and thus losing performance) or adding extra complexity when iterating over the objects so I can keep track when an object is done and I should continue to the next.
Neither is very attractive to me and IMHO since this is a quite common scenario it would make some sense to add it, especially since the parser support relaxed parsing wrt to trailing commas and comments