Valid JSON in brief
JSON allows six kinds of value: objects in braces, arrays in brackets, strings in double quotes, numbers, true or false, and null. Anything else, such as undefined, NaN, comments, single-quoted strings or a trailing comma, makes the whole document invalid, even if JavaScript would accept it.