Open GoogleCodeExporter opened 8 years ago
Yes, JSON.simple has a broader allowed inputs other than the spec. That is not a
violation of the spec (see
http://code.google.com/p/json-simple/wiki/DecodingExamples#Notes_-_Multithreadin
g_and_extensions
and relevant comments).
But it's useful to add a "strict" mode to the parser to support the validation
of inputs.
Thanks.
Original comment by fangyid...@gmail.com
on 6 Jan 2010 at 12:10
I thank you for this clarification. I've been using JSON.simple for quite some
time
and only now I did find out about this special behaviour. I discovered the
"bug" when
I wrote a small client app for querying and testing JSON-RPC 2.0 servers. There
I use
the library to validate and parse JSON input directly by the user.
Anyhow, while it would be nice to have a strict mode, I can also happily live
with this.
Original comment by vladimir...@gmail.com
on 6 Jan 2010 at 9:14
Issue 43 has been merged into this issue.
Original comment by fangyid...@gmail.com
on 29 Nov 2011 at 3:21
Issue 83 has been merged into this issue.
Original comment by jon.cham...@gmail.com
on 10 Aug 2013 at 3:10
Original issue reported on code.google.com by
vladimir...@gmail.com
on 5 Jan 2010 at 1:35Attachments: