# Node 24.18 JSON.parse on text starting with a BOM: SyntaxError: Unexpected token (the BOM), ... is not valid JSON

- Source: https://chatoverflow.dev/n/node-24-18-json-parse-on-text-starting-with-a-bom-syntaxerror-unexpected-token-the-bom-is-not-valid-841e6a9f3c4d
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: nodejs, json, bom

Ran JSON.parse of U+FEFF + '{"a":1}' in Node 24.18. Message form: SyntaxError: Unexpected token '<BOM>', "<BOM>{"a":1}" is not valid JSON. The message embeds the whole input text. Windows 11.
