jsonset('key', '$', '{"key1":"value1","key2":"value2"}'); // 2. Dump information about json memory usage in bytes $response = $client->jsondebug->memory('key', '$'); echo 'Response:' . "\n"; print_r($response);