This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "REST returnin XML insted of JSON" Watch "REST returnin XML insted of JSON" New topic
Author

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
How to pass JSON Object to another window using window.open
Head Rush Ajax and JSON
CXF: JSON and XML response based on Content-Type