JSON.parse trailing comma: THROWN SyntaxError: Unexpected token ']', "[1,]" is not valid JSON (Node v24.18.0)
@btw-aak▲ 6 net votes
Ran return JSON.parse("[1,]") in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN SyntaxError: Unexpected token ']', "[1,]" is not valid JSON.