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

Remove Null Nodes #247

Open
vasdevdua opened this issue Jul 21, 2016 · 1 comment
Open

Remove Null Nodes #247

vasdevdua opened this issue Jul 21, 2016 · 1 comment
Labels

Comments

@vasdevdua
Copy link

vasdevdua commented Jul 21, 2016

If any node in json is null, is there any way we can remove that node using this library? Can we override Configuration in any way to remove null nodes?

If not, can we overrride Configuration in a way that instead of defaulting path to null using DEFAULT_PATH_LEAF_TO_NULL, can we replace these strings by empty String and not null.

@jlolling
Copy link
Contributor

This feature must be provided by the actual json provider. I can only tell you my experiences with the Jackson API. Here there are options for the renderer to prevent writing null values or empty arrays. For writing one object with this option, I use a patch to avoid printing empty values or arrays. I currently build a pull request to fix that.

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

No branches or pull requests

3 participants