'Jackson deserialization in spring fails
I have an API which receives an array of objects as request body (spring framework). But jackson fails to deserialize.
RequestBody received
[
"[Lcom.abc.def;",
[
{
"@class": "com.abc.def",
"name": "hello",
"objectId": 1111,
},
{
"@class": "com.abc.def",
"name": "world",
"objectId": 2222,
}
]
]
Error - no String-argument constructor/factory method to deserialize from String value ('[Lcom.abc.def;');
I cannot change the client who is sending this request. Is there a way to teach spring jackson to ignore anything which is not of form key and value.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
