encode($data) ); } } // Future-friendly json_decode. Works with PHP4, too! if( !function_exists('json_decode') ) { function json_decode($data, $assoc= false) { $json = new Services_JSON(); return( $json->decode($data) ); } }