When converting from an object to JSON, if a field is an Option type, then I want to leave that field out of the JSON. The reason is to save space and thereby reduce IO because I'm saving JSON to the DB.
I can understand that you typically want to include the field with a null value, so a setting to optionally leave out null fields would be great.
When converting from an object to JSON, if a field is an Option type, then I want to leave that field out of the JSON. The reason is to save space and thereby reduce IO because I'm saving JSON to the DB.
I can understand that you typically want to include the field with a null value, so a setting to optionally leave out null fields would be great.