Jankson
Jankson copied to clipboard
Add ability to skip uninitialized variables from being serialized
Currently, uninitialized variables are being serialized as null:
{
"id": "minecraft:cobblestone",
"weight": 60,
"dimensions": null
}
But it'd be great if I skip it and generate a much cleaner JSON file:
{
"id": "minecraft:cobblestone",
"weight": 60
}
May be worth it to tag this for the 1.2.x branch so this can be available before the Document update.
I would like at least an option to actually serialize them as null, as I want all the values in my json to be provided explicitly