parse
JSON.parse('{"x":{"y":2}}').x.y // β 2
JSON.parse() handles nested JSON objects recursively.
JSON.parse('invalid') throws a SyntaxError when the input is not valid JSON.
JSON.parse('invalid')
SyntaxError
Challenge: Verify the error is thrown.