79121985

Date: 2024-10-24 12:59:56
Score: 1.5
Natty:
Report link

It seems like @JsonValue might also work here:

record StringWrapper(@JsonValue String inner);
record OuterDto(StringWrapper field);

I was able to deserialize from:

{
    "field": "hello"
}

https://www.baeldung.com/jackson-annotations#5-jsonvalue

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Roland Fredenhagen