Trailing commas are legal in many programming languages and illegal in JSON. Comments with // or /* are illegal. NaN and Infinity are not JSON numbers. A leading zero on a number, such as 01, is illegal. Undefined is not null; use null when you mean an empty value.
Escape a double quote inside a string with a backslash. A raw line break inside a string is illegal; use \n. After you change something, format it again. A second failure means there was a second problem, which is common in a large paste.