How to get JSON from REST Web API

How to get JSON from REST Web API

by Sahil Rally -
Number of replies: 2

Hello Guys

 

I am using REST Web Service..., I am getting response in XML, how could i get ther same in Json....???

 

Regards

Average of ratings: -
In reply to Sahil Rally

Re: How to get JSON from REST Web API

by Sergio Hernández -

Hi

This is an example in moodle 2.2


/webservice/rest/server.php?wstoken=1cfc5&wsfunction=core_webservice_get_site_info&moodlewsrestformat=json


Regards

Sergio

Average of ratings: Useful (2)