- json in php requires a mess of code and
potentially a 3rd party
libraries because:
-- the bulit-in json json_{en,de}code library functions may not be installed
-- the bulit-in json library in some cases actually has a bug that makes
it encode/decode json incorrectly
Well, that's why we have the FormatJson wrapper. Could use some tests
to make sure that the output from Services_Json and json_{en,de}code
are identical. I'm whipping up some trivial ones now.
-Chad
This is a good idea. Filed as
"Development of unit tests for FormatJson.php versus PHP built-in
json_encode() json_decode() "