Valid JSON follows a few strict rules. When parsing fails, it's almost always one of a handful of mistakes — here they are, with the fix.
[1, 2, 3,] → JSON allows no comma after the last item: [1, 2, 3].{'a': 1} → strings and keys must use double quotes: {"a": 1}.{a: 1} → keys must be quoted: {"a": 1}.// and /* */.{ needs a }, every [ a ].true, false, null, numbers, strings, arrays, objects are allowed.Rather than scan by eye, paste the JSON into a validator that points at the exact spot. The parser reports the position, so you jump straight to the broken line instead of hunting.