Is there a way in Jackson to map json array’s positions to different class properties?
For example if we have an api that returns person properties as array (0 is the id, 1 is the name,2 is the age, etc.) how to map this to an object that has properties id, name and age?
"person": [
1,
"Evgeni",
35
]
record Person(Long id, String name, Integer age)
Looking for something like:
@JsonProperty("<get the item at position 1>") String name