Web API Return XML - How to Convert to JSON

On iphone it works, but I saw that in webview it doesn’t work.
I also searched for an api to upload your xml code and send back a URL to post it but I can’t find any sorry track.