$v) $result[] = json_encode($k).':'.json_encode($v); return '{' . join(',', $result) . '}'; } } } if(!function_exists('json_decode')) { function json_decode($json) { $comment = false; $out = '$x='; for ($i=0; $i