Comment

Comment by dak1

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.

parent dak1 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton