Let’s say you have a legacy web API service that only returns XML responses.
Now you want to modernize this service by adding the capability of also returning JSON
so newer client applications can process the response but you don’t want to change the legacy web API service.
You can do this with only one line of code in Azure API Management and creating an APIM policy that converts XML responses to JSON by using the policy element xml-to-json.