Closed GoogleCodeExporter closed 9 years ago
I do not know how to delete issues, but this issue should now be deleted. I
reported it before looking at the
source code to see what was going on. My JSON was improperly formed for this
library and looked like this:
"{$name: "jon", $gender: "male"}". There were no quotes around the parameter
names. This style of JSON works
fine in Javascript, where the whole thing is evaled, but with this library, all
strings, even parameter names, need
to be enclosed in quotes. My JSON string properly formatted looks like this:
"{"$name": "jon", "$gender":
"male"}". That properly formatted JSON will decode just fine.
Original comment by walkerf...@gmail.com
on 30 May 2008 at 5:28
it's still a valid problem imho
Original comment by ionel...@gmail.com
on 25 Jun 2008 at 3:17
Original comment by mikechambers
on 2 Jul 2008 at 4:36
Marking this issue as invalid (since the original poster discovered that the
JSON
string they were trying to decode was not valid JSON).
However, as a followup, I'll create a new ticket to allow for decoding of
non-quoted
object identifier strings in non-strict mode.
Original comment by darron.schall
on 23 Oct 2008 at 2:10
Actually, scratch that last comment. There already is an issue present for the
non-quoted feature in a non-strict decoding mode - issue #35. Marking this as a
duplicate instead since the core issue is the same.
Original comment by darron.schall
on 23 Oct 2008 at 2:12
Original issue reported on code.google.com by
walkerf...@gmail.com
on 29 May 2008 at 6:22