google-code-backups / xinc

Automatically exported from code.google.com/p/xinc
0 stars 0 forks source link

Json encoding is malformed #183

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Attempt to retrieve any json encoded data from the api
2. Validate the returned results here: http://www.jsonlint.com
3. Notice that values are enclosed in single quotes rather than double
quotes which results in invalid JSON

What is the expected output? What do you see instead?
scalars enclosed in double quotes

What version of the product are you using? On what operating system?
Version 2.0.1 on FreeBSD

Please provide any additional information below.

On line 57 of Plugin/Repos/Api/Format/Json.php you can just change the
line to:

return "\"$a\"";

After that, everything validates. 

Original issue reported on code.google.com by mdjpur...@gmail.com on 23 Aug 2008 at 1:14

GoogleCodeExporter commented 8 years ago
* Fixed in r420.  Thanks for the report!

Original comment by majelbst...@gmail.com on 5 Sep 2008 at 12:24

GoogleCodeExporter commented 8 years ago
Added unit tests for the JSON format, including regression test for this bug.

Original comment by jcaro...@gmail.com on 8 Sep 2008 at 2:41

GoogleCodeExporter commented 8 years ago

Original comment by jcaro...@gmail.com on 8 Sep 2008 at 2:42