boon saves empty attributes
See original GitHub issueConsider this case:
public class Cat { public String name; public String type; public String sex; //... constructor, etc omitted for brevity } Cat mittens = new Cat("mittens", "calico", "");
In this case, Boon.toJson(mittens) will give us:
{ "name":"mittens", "type":"calico", "sex":"" }
Is there any way to ignore empty values? If not, will you consider a patch to allow for this?
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Eloquent saves missing attributes as empty strings instead of ...
Eloquent saves missing attributes as empty strings instead of NULLs ... When I try to save a model with a missing attribute to...
Read more >Crafting Overhaul [DE] - Workshop - Steam Community
- Craft new unique weapons and shields on anvil. - Create Workbench and give new stats to your empty amulet and rings with...
Read more >5 ways to check if a Javascript Array is empty - Level Up Coding
Let's describe 5 ways for checking if JS array is empty and whether it exists. 1. The length property. The first thing you...
Read more >Elden Ring: 14 hidden mechanics you didn't know you could do
To perform a kick, simply attack an enemy with an empty hand. The kick is your bare fist's skill, and it will knock...
Read more >Childe Harold's Pilgrimage Summary & Analysis
The poem contains many autobiographical elements, and is perhaps the most perfect encapsulation of ... To save them from the wrath of Gaul's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Done 😃
@RichardHightower Are there some patches here that needs to be ported on https://github.com/advantageous/boon?
looking now