Hacker News new | ask | show | jobs
by dak1 1945 days ago
That looks a bit like NDJSON, assuming that the space between the objects is actually a newline.

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.

2 comments

Or JSON lines - whose website looks very similar to NDJSON's:

https://jsonlines.org/

This format works great when using Amazon Athena (Presto) against log files written with one JSON object per line.

Both the websites are fancy ways of saying "one JSON object per line". The idea of laying out data that way was in common use before either of the website, they're just recording the practice.
It looks like it might be this: https://jsonlines.org/ Which I hadn't heard of before.