A value is an object, an array, a string, a number, true, false, or null. Strings use double quotes. Keys are strings. There are no comments and no trailing commas. A single quote, a bare word, or a function call means you are looking at something that is not JSON, often a JavaScript object someone typed by hand.
Whitespace does not change the value. Formatting only adds line breaks and indentation so people can read it. The formatter on this site parses first. If parsing fails, the text is not JSON yet, and pretty-printing would be a guess.