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 skip serialize default primitive values #68

Open
avrecko opened this issue Dec 6, 2022 · 2 comments
Open

json skip serialize default primitive values #68

avrecko opened this issue Dec 6, 2022 · 2 comments

Comments

@avrecko
Copy link
Contributor

avrecko commented Dec 6, 2022

I am looking at the json serialization. A bit surprised I am not finding an option to skip serialization of default values. Is this by design?

@avrecko
Copy link
Contributor Author

avrecko commented Dec 9, 2022

If I really need this I am going to make a pull request. Really liking the code.

@incubos
Copy link
Member

incubos commented Jan 17, 2023

I am looking at the json serialization. A bit surprised I am not finding an option to skip serialization of default values. Is this by design?

Yep, as mentioned in JavaDoc:

/**
 * Beware: this is NOT a complete and fully compliant JSON parser!
 * Its main purpose is to decode typical simple queries without third-party dependencies.
 */

But contributions are always welcome!

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

2 participants