Closed GoogleCodeExporter closed 9 years ago
Here's the mapping between JSON and Java entities:
http://code.google.com/p/json-simple/wiki/MappingBetweenJSONAndJavaEntities
Basically, you need to follow the mapping to get valid JSON strings.
Original comment by fangyid...@gmail.com
on 20 Apr 2009 at 1:45
Original comment by fangyid...@gmail.com
on 21 Apr 2009 at 4:51
I disagree with the current behaviour. The library should either automatically
quote
what toString() returns or not accept unrecognized objects at all. Silently
producing
broken JSON is the worst option of all IMHO.
Original comment by martin.p...@gmail.com
on 10 Aug 2009 at 1:34
writeJSONString(Object) writing an unquoted toString() is a disaster. I agree
with martin, silently producing broken JSON is the worst option, and the
default behavior.
Original comment by ober...@civicscience.com
on 4 Mar 2014 at 6:30
Original issue reported on code.google.com by
dief...@gmail.com
on 20 Apr 2009 at 1:33