My json requestBody is
{
"action": "DONE",
"email": {
"29794": "sue@gmail.com",
"29795": "sue@gmail.com"
}
}
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)"sue@gmail.com"; line: 1, column: 4]
Please help where is it getting wrong.