FasterXML / FasterXML/jackson-future-ideas

Format recursive elements as objects with only id-properties

Aperta
#26 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
21
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When I use @JsonIdentityInfo recursive element is presented as simple property like this:
`{
"id": "1"
"order": {
"id": "1",
"items": [
"1", { "id": "2", "order": "1" }, { "id": "3", "order": "1" }
]
}
}`

I want these elements to be presented as objects with only id-properties like this:
`{
"id": "1"
"order": {
"id": "1",
"items": [
{ "id": "1"}, { "id": "2", "order": { "id": "1" } }, { "id": "3", "order": { "id": "1" } }
]
}
}`

In such a way it more useful for deserializing it on other platforms.
One more profit is that it would be possible to implement composite key for objects with this representation.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.