Closed GoogleCodeExporter closed 9 years ago
You can use setLenient(true) to enable this. Unfortunately this also disables
other strictness checks.
Original comment by jessewil...@google.com
on 21 Dec 2011 at 6:23
One more option, while I'm thinking of it. You can wrap your document in '['
and ']' to make it conform to the strict standard.
Original comment by limpbizkit
on 21 Dec 2011 at 6:30
To check whether something is valid JSON as per Ecmascript would then require
catching a MalformedJsonException, wrapping in '[' + json + ']', and trying
again? I don't think that is reasonable.
Original comment by chr...@google.com
on 21 Dec 2011 at 6:38
Original issue reported on code.google.com by
chr...@google.com
on 21 Dec 2011 at 6:51