json-source-map icon indicating copy to clipboard operation
json-source-map copied to clipboard

Adds line number to unexpectedToken syntax error

Open dyouberg opened this issue 2 years ago • 0 comments

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.

dyouberg avatar Jul 19 '22 15:07 dyouberg