Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
I am working on an application which uses the Stack Exchange API. But I don't want responses in JSON format.
So, if I want to convert JSON to another format like XML, is there any way to get the server itself to reply in XML format? Or is it my responsibility to do this conversion?
12.8k55 gold badges3434 silver badges6161 bronze badges
asked May 7, 2013 at 13:48
The API only returns data in JSON format - you must perform any conversion yourself.
Here is the source code for a PHP app I wrote a while back that converts the JSON returned by the API to XML:
It expects two
GET variables to be set:
method - the API route to use (for example,
version - the API version to use (for example,
These are in addition to any regular query string parameters expected by the API.
answered May 11, 2013 at 15:14
Nathan OsmanNathan Osman
23k1111 gold badges5959 silver badges107107 bronze badges
You must log in to answer this question.
Not the answer you're looking for? Browse other questions tagged