I implemented a RESTful web service with Spring and am using Jackson JSON as the serializer / deserializer for JSON objects.
However I run into Error 415’s when the object that is to be deserialized contains a HashMap:
private Map<String, String> requestMap = new HashMap<String, String>();
If I remove this, everything works perfectly. Is this a known issue? Are there any fixes?
Thanks,
Sri
Strictly speaking, Jackson serializes from Interface-type references just fine. The following demonstrates this point.
There’s some other problem in the system you’re using.