FasterXML / FasterXML/jackson-future-ideas

Format recursive elements as objects with only id-properties

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
21
Forks
3
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.