i want webservice return json format instead of default xml. should do?
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <customers> <customer id="1" xlink:href="http://www.mywebsite.com/api/customers/1"/> <customer id="2" xlink:href="http://www.mywebsite.com/api/customers/2"/> </customers> </prestashop>
this getting when entered http://www.mywebsite.com/api/customers in address bar. xml format. need convert json.
it seems late reply question others might help.
you need append param ?output_format=json
force prestashop return json data instead of xml default.
e.g http://www.mywebsite.com/api/customers?output_format=json