-1

I'm having problems to convert an XML response file to JSON using XSJS, Any help will be appreciated. Thanks!

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Angelica
  • 29
  • 2

1 Answers1

0

It is actually pretty simple. While sending the request using XSJS to the server...your URL path should contain the format specifier. http://myhost:8000/exampleapp/resource.xsjs/some/more/options?$format=JSON or if you do not want to append to the URL then include the following line your request header accept: application/json

Ajay Reddy
  • 1,475
  • 1
  • 16
  • 20