Re:Use streaming JSON to reduce latency on mobile
by beau on Monday February 19, 2018 @12:13PM
(#16414105)
It works for Twitter: https://developer.twitter.com/en/docs/tutorials/consuming-st...
[ Parent
| on HN ]
Re:Use streaming JSON to reduce latency on mobile
by platz on Monday February 19, 2018 @02:21PM
(#16415015)
> carriage-return (\r\n) delimited JSON-endocded activities
That's not JSON
Re:Use streaming JSON to reduce latency on mobile
by Spivak on Tuesday February 20, 2018 @12:00AM
(#16417955)
Why would you say that?
> Insignificant whitespace is allowed before or after any of the six structural characters.
Where whitespace may be space, carriage return, line feed, or horizontal tab. It's explicitly valid JSON.
Re:Use streaming JSON to reduce latency on mobile
by platz on Tuesday February 20, 2018 @12:07AM
(#16417983)
ok - but my point is that it's a protocol, that is more specific than json i.e. streaming JSON in full generality has problems. if you want to restrict yourself to a subset and create a protocol, thats great - but it's not really "streaming JSON"