You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When working with Nullable types it would be nice to have a new attribute to serialize only non null fields (or properties), empty arrays, null sub objects.
In this case the resulting json could be significantly reduced in size and reduce network bandwidth.
Best regards
Armindo
The text was updated successfully, but these errors were encountered:
Yes, we considered this. However this would introduce an incongruency between serialization and deserialization. While deserializing a nullable field, in case of null that value is setted on the deserialized object (previous value is overwritten), while in case of empty property the value will remain the same. This is the reason because also null fields are serialized.
Hi,
When working with Nullable types it would be nice to have a new attribute to serialize only non null fields (or properties), empty arrays, null sub objects.
In this case the resulting json could be significantly reduced in size and reduce network bandwidth.
Best regards
Armindo
The text was updated successfully, but these errors were encountered: