json icon indicating copy to clipboard operation
json copied to clipboard

Detailed error message on parse failures?

Open agentzh opened this issue 8 years ago • 1 comments

I wonder if this library can do detailed error reporting on invalid JSON inputs. Right now it does not indicate the offending location in the potentially large JSON input strings nor it reports that grammatical symbols the parser was expecting that that offending location.

agentzh avatar Jan 03 '17 19:01 agentzh

:+1: to reporting the position. Reporting the grammatical symbols that the parser expects tends to produce rather confusing results if done in a generic way, so I tend to favor manually inserted guard clauses.

moritz avatar Mar 19 '17 16:03 moritz