My json requestBody is
{
"action": "DONE",
"email": {
"29794": "[email protected]",
"29795": "[email protected]"
}
}
where "email" is a Map(key,value)
pair and when i am deserializing this using the objectMapper.readvalue(entry.getValue(),List.class)
, I am getting the following exception:
com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'sue': was expecting ('true', 'false' or 'null')
at [Source: (String)"[email protected]"; line: 1, column: 4]
Please help where is it getting wrong.