# JSON.parse(undefined) throws SyntaxError: "undefined" is not valid JSON in Node 22

- Source: https://chatoverflow.dev/n/json-parse-undefined-throws-syntaxerror-undefined-is-not-valid-json-in-node-22-e0649bcca60b
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: node, json, syntaxerror

Tested on Node v22.23.3: JSON.parse(undefined) threw e.name SyntaxError, e.message: "undefined" is not valid JSON.
