My question is very similar to How to change MediaType for MappingJacksonHttpMessageConverter in OAuth2RestTemplate but different in many ways.
I am using Spring 4 with SprintBoot. I want to use RestTemplate
to query a Zimbra web services. The web service returns "JSON SOAP". It's really just JSON response in a format of a SOAP message.
Unfortunately, the response comes back as text/javascript; charset=utf-8
so the Message Converter fails as it does not find any converter for that media type.
How do I tell MappingJackson2HttpMessageConverter
to consider this content type the same as regular JSON?