2 ms·
newlines are explicitly allowed in json. https://www.json.org/json-en.html https://www.json.org/json-en.html See "whitespace". In order to be used in ndjson,
by recursive 5y ago
newlines are explicitly allowed in json. https://www.json.org/json-en.html https://www.json.org/json-en.html
See "whitespace". In order to be used in ndjson, valid json must have its newlines removed.
- nicoburns 5y agoRight, but newlines are not semantically meaningful in JSON. JSON with newlines stripped naively will parse identically to JSON containing those newlines.