JKI-JSON-Serialization icon indicating copy to clipboard operation
JKI-JSON-Serialization copied to clipboard

provide error line and marker of JSON parse error

Open nate-moehring opened this issue 1 year ago • 0 comments

JSON-Deserializer has terrible error messages, very difficult to debug errors on json file loads. For example, for a trivial json string like this: {"str": Hello World!}, the error message generated would simply be: "Internal error". Yuck.

This change will utilize the information in the Lexer to provide a more helpful error message like this: Internal error

Internal error
JSON parse error in line 1:
{"str": Hello World!}
--------^

nate-moehring avatar Jul 04 '24 22:07 nate-moehring