FasterXML / FasterXML/jackson-future-ideas
Rename a @JsonProperty only inside a @JsonView
Aperta
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 21
- Fork
- 3
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
It would be handy if one could rename a json property **only** inside a specific view.
```
public class PersonDTO {
@JsonView(View.Specific.class)
private String personname;
static class View {
interface Specific {
//@JsonProperty("firstname") //TODO this does not work
private String personname;
}
}
}
```
Here, default field name is "personname", but when using the view explicit, the field should only then be renamed to "firstname".
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.