News for hackers. Stuff that matters.
Re:Use streaming JSON to reduce latency on mobile by ricardobeat on Monday February 19, 2018 @02:00PM (#16414843)
JS (and JSON by extension) does not have multi-line strings, so line endings are already escaped. All you need to do is output ‘non-pretty’ json.
Re:Use streaming JSON to reduce latency on mobile by pkulak on Monday February 19, 2018 @02:39PM (#16415136)
Nice catch, thanks! I didn't realize that. Looks like no control characters are allowed in JSON string literals.