Hi Kartik,
as you correctly indicated, XMLroJSON service, to transform an XML to a JSON and vice versa is available from 6 onwards.
In 5.2.x you can use the map editor to have in input an XML file and in output a CSV one (or vice versa, depending on the transformation you want to achieve). In the CSV file the filed separator will be the ":". You will need to play with the brackets "{}" but it's achievable.
Another way when changing from XML to JSON is to use an XSLT to do the job.
Best regards
Emiliano Pacelli
------------------------------
Emiliano Pacelli
------------------------------