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

Allow to configure serialization strategy for unset features #2

Open
erdalkaraca opened this issue Dec 3, 2020 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@erdalkaraca
Copy link

Currently, when unset features are serialized, this will lead a null value at the JavaScript/JSON side which leads to lot of boilerplate null checking code.
It would be great to allow how unset features should be treated.

For example, for a multi-valued feature, I would like the JSON object to have an empty array instead of null, so I do not have to check in JavaScript for null before accessing it.

@eneufeld eneufeld added the help wanted Extra attention is needed label Dec 1, 2022
@eneufeld
Copy link
Contributor

eneufeld commented Dec 1, 2022

We gladly accept a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants