I want to convert the array below
Array ( [city] => Array ( [0] => Array ( [0] => Rd
Which programming language are you using ?
In case you are using PHP you can use the following to convert to JSON:
$json = json_encode($your_array);
And for XML you can check the following answer: How to convert array to SimpleXML.
Hope it helps.