A Completely Fair and Balanced Comparison of PHP JSON Libraries
p. Last month Gaetano Giunta posted an “interesting comparison of JSON conversion methods”:http://gggeek.altervista.org/sw/article_20061113.html on his “blog”:http://gggeek.altervista.org/. In it he compares the following 4 methods available to PHP developers for encoding data in JSON.
*(disc) “The lib”:http://pecl.php.net/package/json written originally by Omar Kilani is the one that is now officially part of PHP
* The “JSON lib”:http://pear.php.net/pepr/pepr-proposal-show.php?id=198, orginally written by M. Migurski and now officially part of PEAR
* The “Zend_Json”:http://framework.zend.com/manual/en/zend.json.html lib, which is part of the Zend Framework
* The “Jsonrpc”:http://sourceforge.net/project/showfiles.php?group_id=34455&package_id=188337 (and Json) extension to the php-xmlrpc lib
p. Gaetano makes no bones about the fact that he wrote “Jsonrpc”:http://sourceforge.net/project/showfiles.php?group_id=34455&package_id=188337 . That being so, the comparison seems to be pretty fair. I won’t spoil the results for you, visit his site if you want them. However, I will steal this quote from him to give you a taste of what you’ll be seeing.
bq. Disclaimer: I’m biased
p. I think that sums it up nicely.
p. If you are using JSON in your PHP applications then this is a short read but an informative one. I highly recommend it.
=C=


One comment to “A Completely Fair and Balanced Comparison of PHP JSON Libraries”
May 2nd, 2008 at 10:30 pm
I have problems with cyrillic characters, they’re not correctly encoded to JSON when using Zend_Json::encode().