-
-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misleading exception for unquoted String parsing #561
Comments
Your input:
is not valid JSON: Strings must be quoted in double-quotes. This is what exception points out. |
@cowtowncoder it seems that an error message is misleading |
@plokhotnyuk I'm sure there are always ways to improve error messages, but what is the problem with this one? |
@cowtowncoder it looks like enumeration of all ałowed tokens, but misses to mention that strings or numbers are expected here too. |
@plokhotnyuk Ok I see, yes, that could be argued. Rationale for existing exception is simply that anything that starts with a letter must be unquoted keyword, and thereby Strings (start with double-quote) and Numbers (digit, comma, or minus) do not count. But I can see why that assumes some context from recipient should not be assumed. |
Hi,
I am using Jakcson Databind v2.9.9. I have following code that fails.
Exception is:
Can some one please help?
The text was updated successfully, but these errors were encountered: