Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2362

Remove slashes from webservice

$
0
0

by Crazy Coder.  

I am trying to develop a webservice in moodle using the template given at https://github.com/moodlehq/moodle-local_wstemplate. I have successfully created the webservice and returned the result in json format. But the result it is shown on the browser shows escaped json response.


"[{\"1\":\"International School of Photonics\"}
How can I remove those slashes from the response. I have modified the public static function hello_world() funtion to return json_encode() value.


Viewing all articles
Browse latest Browse all 2362

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>