SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

Using Firefox debugging, I was able to see that the value type coming back was undefined when I would get that error. Doing a check for a null/undefined on the value to be parsed first, then if condition is false, proceed with parse, else handle condition resolved my issue.

Leave a Comment

tech