Modify content type in my custom api

Could I modify content type in my custom API?
I think default is application/xml or application/json
However, when I use platform.api.get(url, options)
I get the result which is not json, then return to client.
It will display xml parse error on browser.
Who can give me advice, please~