Last month Gaetano Giunta posted an interesting comparison of JSON conversion methods on his blog. In it he compares the following 4 methods available to PHP developers for encoding data in JSON.
- The lib written originally by Omar Kilani is the one that is now officially part of PHP
- The JSON lib, orginally written by M. Migurski and now officially part of PEAR
- The Zend_Json lib, which is part of the Zend Framework
- The Jsonrpc (and Json) extension to the php-xmlrpc lib
Gaetano makes no bones about the fact that he wrote Jsonrpc . 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.
Disclaimer: I’m biased
I think that sums it up nicely. :)
If you are using JSON in your PHP applications then this is a short read but an informative one. I highly recommend it.
=C=

Comments