When I am using <spring-cloud.version>Hoxton.SR5</spring-cloud.version> in my Spring Boot application it is returning me an XML format in the HTTP response by default:
<List>
<item>
<productId>1</productId>
<productName>Samsung LED TV</productName
<quantity>100</quantity
<itemType>TV</itemType>
<itemGroup>Entertainement</itemGroup>
</item>
</List>
And When I am using <spring-cloud.version>Hoxton.SR3</spring-cloud.version>, it is returning JSON Format:
[
{
"productId": 1,
"productName": "Samsung LED TV",
"quantity": 100,
"itemType": "TV",
"itemGroup": "Entertainement"
}
]
What are the changes made in Hoxton.SR5 that it is returning XML format by default and how can I make sure that I get JSON format while using Hoxton.SR5?.