When trying to use the REST API, the content-type header does not change the response format and always returns an xml body. According to the Eureka documentation for the REST API, specifying the content type should allow for JSON responses: https://github.com/Netflix/eureka/wiki/Eureka-REST-operations
// Both of these requests return an xml response
curl http://localhost:8761/eureka/apps -H "Content-Type:application/json;charset=UTF-8"
curl http://localhost:8761/eureka/apps -H "Content-Type:application/json"
When trying to use the REST API, the content-type header does not change the response format and always returns an xml body. According to the Eureka documentation for the REST API, specifying the content type should allow for JSON responses: https://github.com/Netflix/eureka/wiki/Eureka-REST-operations