3 ms·
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 to
by dak1 6y 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 http://ndjson.org/libraries.html
[2] ElasticSearch uses it for msearch response bodys, for example.
- hermitcrab 6y agoIt looks like it might be this: https://jsonlines.org/ https://jsonlines.org/ Which I hadn't heard of before.
- ydant 6y agoOr JSON lines - whose website looks very similar to NDJSON's: https://jsonlines.org/ https://jsonlines.org/ This format works great when using Amazon Athena (Presto) against log files written with one JSON object per line.
- quietbritishjim 6y agoBoth 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.