Administration response and request formats
The WebSphere® MQ File Transfer Edition Web Gateway returns responses to queries in one of two formats: XML or JavaScript Object Notation (JSON). You can submit requests to create, modify, and delete file spaces, or map user names to MQMD user IDs to the Web Gateway only in XML format.
You can specify the format of the response from the Web Gateway by including the Accept: return-type header in the request or by including the query accept=return-type in the URI. You can use a web application to parse the content of the XML or JSON response and display it in an appropriate format to a web user.
The default format is XML. If you specify the format using both the Accept: header and the query accept= in the URI, the Web Gateway returns a response in the format specified by the query in the URI.