- NDJSON - Newline delimited JSON
https://github.com/ndjson/ndjson-spec
const ndjsonParser = require('ndjson-parse');
const ndjsonString = `{"some":"thing"}
{"foo":17,"bar":false,"quux":true}
{"may":{"include":"nested","objects":["and","arrays"]}}`
const parsedNdjson = ndjsonParser(ndjsonString);
console.log(parsedNdjson[0].some) // thing
{"some":"thing"}
{"foo":17,"bar":false,"quux":true}
{"may":{"include":"nested","objects":["and","arrays"]}}
(with \n
line separators)