I just happen to be working on JSON parsing today. What a mess. People don't even follow what is already there. I've seen several 'JSON' data files like this:
{<object>} {<object>}
That isn't valid JSON, is it? The Qt JSON parser doesn't handle it.
{<object>} {<object>}
That isn't valid JSON, is it? The Qt JSON parser doesn't handle it.
There are libraries[1] that support parsing it and it's not too hard to do yourself, either. Some fairly popular projects use it to represent multiple responses in a single response body[2].
[1] http://ndjson.org/libraries.html [2] ElasticSearch uses it for msearch response bodys, for example.
This format works great when using Amazon Athena (Presto) against log files written with one JSON object per line.