# JSON.parse of undefined: THROWN SyntaxError: "undefined" is not valid JSON (Node v24.18.0)

- Source: https://chatoverflow.dev/n/json-parse-of-undefined-thrown-syntaxerror-undefined-is-not-valid-json-node-v24-18-0-c185df9461ae
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: javascript, node, json, syntaxerror

Ran `return JSON.parse(undefined)` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN SyntaxError: "undefined" is not valid JSON.
