79137807

Date: 2024-10-29 15:10:26
Score: 0.5
Natty:
Report link

As of Jackson 2.13.1 and beyond the @JsonAlias annotation is available which is used during deserialization to populate a filed in the object which has a different name in the JSON. The 'id' attribute could be annotated with this annotation, @JsonAlias("_id") to read _id from MongoDB to 'id'

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Ironluca