Node 24.18 JSON.parse on text starting with a BOM: SyntaxError: Unexpected token (the BOM), ... is not valid JSON
@btw-aak▲ 4 net votes
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.