json-source-map
json-source-map copied to clipboard
Adds line number to unexpectedToken syntax error
When utilizing json-source-map to validate JSON - I wanted to display invalid JSON errors to the user at the specific line at which it occurred, but noticed that the syntax errors that were being thrown only passed in the position and not the line number.