Write two records as independent JSON lines
Example input
[{"id":1},{"id":2}]Expected result
{"id":1}
{"id":2}Choose JSON to NDJSON. The array brackets and separating comma disappear because each line is serialized separately. Reverse the operation to recover an array containing both objects. An actual newline inside a string is escaped within its record, rather than turning into a second NDJSON record.