CC: | jpope [...] 12engines.com |
Subject: | Trait to omit undef fields from serialisation |
Hello
I have discovered that the latest version of MooseX::Storage breaks my application, because it now serializes undef fields to JSON as null, when before it omitted those fields.
The change was introduced in version 0.47, via github PR#6 by cowholio4 (cc'd)
I realize that the new behaviour is more correct, so it would be unreasonable of me to request a revert, but would it be possible to request a new trait on the dist that provides the old behaviour, that is any fields that are undef are omitted from the generated JSON.