What you didn’t know about JSON.parse


The JSON parse function takes in a string (invalidĀ JSON will cause a SyntaxError exception). If parsing succeeds, JSON.parse returns the corresponding value or object.