The json endpoint is intended for RESTful requests. To receive XML format replies please make a SOAP request instead.
By changing “json” for “soap” in the request URL your requests will be sent to the correct endpoint. We have a few SOAP examples here for FlightXML2. Most examples use formatted printing instead of printing the raw XML. They may require some minor changes to make it visible.