- All Implemented Interfaces:
- org.springframework.messaging.converter.MessageConverter, org.springframework.messaging.converter.SmartMessageConverter
public class CustomJackson2MappingMessageConverter
extends org.springframework.messaging.converter.MappingJackson2MessageConverter
Custom implementation of MappingJackson2MessageConverter
that handles special String cases.
If the target of conversion is a String, it tries to read it from a quoted json string, to properly remove the quotes, if it fails, it then just
returns the original string as it is just a raw json string needed for the target.
- Author:
- Vinicius Carvalho