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

Json: map non-primitive collections to JSON objects #28861

Open
maumar opened this issue Aug 24, 2022 · 2 comments
Open

Json: map non-primitive collections to JSON objects #28861

maumar opened this issue Aug 24, 2022 · 2 comments

Comments

@maumar
Copy link
Contributor

maumar commented Aug 24, 2022

Currently collections are mapped to JSON arrays, we could map them to JSON objects instead.

@roji
Copy link
Member

roji commented Mar 30, 2023

@maumar can you provide some context on what this means?

@AndriySvyryd
Copy link
Member

This would allow to map collections of owned types as objects where one of the properties on the owned type is mapped to the object key and the value contains another JSON object containing the rest of the properties.
In the client side it would still be a regular collection, as opposed to #21262

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

No branches or pull requests

4 participants