aspose 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


Win a copy of Spring in Action this week in the Spring 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: REST returnin XML insted of JSON