79490922

Date: 2025-03-06 23:35:58
Score: 1.5
Natty:
Report link

The @JsonAlias annotation itself has the response, use the following:

data class MyClass @JsonCreator constructor(
  @JsonAlias({"name", "title"})
  val name: String
)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: rubenqba