Register / Login
REST returnin XML insted of JSON
posted 4 years ago
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
Boost this thread!
CXF: JSON and XML response based on Content-Type
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