What makes JSON valid
Keys and strings must use double quotes, items are separated by commas with none after the last item, and only objects, arrays, strings, numbers, true, false and null are allowed. Anything else, including comments, makes the whole document invalid.