Best way to handle empty collections?

4 views
Skip to first unread message

Colin DuPée

unread,
Mar 1, 2022, 3:41:59 PM3/1/22
to Genson user group
There's a simple way to avoid serializing null values.  Is there a good way to avoid serializing empty collections?

Bonus points for appropriately clearing a member collection when using deserializeInto and the JSON for that element is missing.  :D

~C
Reply all
Reply to author
Forward
0 new messages