How To JSON to XML?
Last updated
Last updated
JSON to XML policy converts the response data of institution backends in JSON format to XML format. This ApiGo policy undertakes the conversion from JSON to XML format and provides data return to clients in XML format.
Firstly, the endpoint is defined on the Management Portal as in Figure 1. The address of the source system that responds data in JSON format is given to the Target URL part of the Endpoint. The Endpoint configurations are saved and published.
Management Portal -> Endpoints -> Add Endpoint -> Add Policy -> Json to Xml
Figure 1
Figure 2
2. We recorded the source API which returns the response value shown in Figure 3. The JSON response format of the Endpoint we saved, returns to us as converted to XML format shown in Figure 4.
Figure 3
Figure 4