How to make Jackson rename field id to _id while serializing and vice-versa while deserializing, without adding any annotation on the class?
For example this object:
{
"id": "abc",
"value": "foo"
}
should be serialized to:
{
"_id": "abc",
"value": "foo"
}
I want it to work for any class, without the need of annotating each id field with @JsonProperty("_id")