News for hackers. Stuff that matters.
Re:Use streaming JSON to reduce latency on mobile by andrewprock on Monday February 19, 2018 @11:56AM (#16413975)
Streaming JSON is troublesome because the base object is unbounded. It's true that there are workhorses that handle this, but when debugging responses, ad hoc tooling is very useful. If you can't examine a response without using a streaming parser, the cost of maintenance goes up significantly.

It's important to remember why we use JSON. It's not because it's well suited to transmission. It's because it's easy to reason about. If you want to move to a streaming format that is not easy to reason about, you may as well move to a binary format.

Re:Use streaming JSON to reduce latency on mobile by beau on Monday February 19, 2018 @12:14PM (#16414108)
curl is a streaming parser. Most tools know what to do with a newline.
Re:Use streaming JSON to reduce latency on mobile by andrewprock on Monday February 19, 2018 @01:00PM (#16414421)
I haven't checked, but does Chrome preview tab handle this non-standard format? That's the level where a great deal of JSON debugging occurs.