Malformed JSON

1 view
Skip to first unread message

Matthew

unread,
Aug 22, 2008, 10:05:11 AM8/22/08
to Xinc Development
Hey there,

The data returned from the JSON API data formatter is malformed.
Scalar values should be enclosed in double quotes, not single quotes.
On line 57 of Plugin/Repos/Api/Format/Json.php you can just change the
line to:

return "\"$a\"";

After that, everything validates.

Thanks,

jcarouth

unread,
Aug 22, 2008, 4:03:16 PM8/22/08
to Xinc Development
Thanks for the information Matthew!

Would you mind submitting this as an issue in the Google Code issue
tracker? http://code.google.com/p/xinc/issues/entry

Regards,
Jeff
Reply all
Reply to author
Forward
0 new messages