Missing square brackets in JSON

A JSON text holds exactly one value. To send several objects, they go in a list: [ at the start, ] at the end, and commas between them. Copy a few items out of the middle of a list, or join log lines with commas, and the brackets are missing. The parser reads the first object as the whole JSON and stops at the comma after it, because nothing but whitespace can follow a complete value. Values on separate lines with no commas at all are NDJSON (newline-delimited JSON), a different format that j2n reads as it is.

In Chrome and Node.js, JSON.parse says: Unexpected non-whitespace character after JSON at position 33

Broken
{"id": 1, "name": "Ada Lovelace"},
{"id": 2, "name": "Charles Babbage"}
Fixed
[
  {"id": 1, "name": "Ada Lovelace"},
  {"id": 2, "name": "Charles Babbage"}
]

Fix it by hand

Add a [ before the first value and a ] after the last one, and remove any comma after the last value.

Open this example in j2n