Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format recursive elements as objects with only id-properties #26

Open
azamat-zhurtbayev opened this issue May 17, 2018 · 0 comments
Open

Comments

@azamat-zhurtbayev
Copy link

azamat-zhurtbayev commented May 17, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant