Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.3

Bug #16251 single quotes instead of double quotes -> wrong JSON format
Submitted: 2009-05-22 21:43 UTC
From: wolax Assigned: alan_k
Status: Closed Package: Services_JSON (version 0.9.0)
PHP Version: 5.2.9 OS: Mac OS X
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 26 + 37 = ?

 
 [2009-05-22 21:43 UTC] wolax (Matthias Schmidt)
Description: ------------ _encode returns values wrapped in single quotes but should return them in double quotes Test script: --------------- require_once('JSON.php'); $test = array("bla", "foo", "bar"); $json = new Services_JSON(); echo $json->_encode($test); Expected result: ---------------- ["bla","foo","bar"] Actual result: -------------- ['bla','foo','bar']

Comments

 [2009-05-23 06:05 UTC] alan_k (Alan Knowles)
-Status: Open +Status: Closed -Assigned To: +Assigned To: alan_k
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ Thanks