File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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