wood burning stoves*
The moose likes Web Services and the fly likes REST returnin XML insted of JSON Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "REST returnin XML insted of JSON" Watch "REST returnin XML insted of JSON" New topic

REST returnin XML insted of JSON

Sahil Reddy
Ranch Hand

Joined: Jan 24, 2011
Posts: 145
Hello Guys

I am using Moodle Web Services . I am using Moodle 2.3. I am getting response as XML but i want to get response in JSON.

How can i mention it on HttpUrlConnection Object for the Web service to return JSON instead of XML ??

Thanks and Regards
I agree. Here's the link: http://aspose.com/file-tools
subject: REST returnin XML insted of JSON
Similar Threads
How to access the JSON reponse from a java client
Uncaught SyntaxError: Unexpected token < when calling java SOAP webservice
Head Rush Ajax and JSON
CXF: JSON and XML response based on Content-Type
How to pass JSON Object to another window using window.open