omit-empty
omit-empty copied to clipboard
Extend options to allow empty arrays and ignored properties
When building responses for REST List responses, an empty array is significant. So extended options to allow them to pass through.
Also added support for a simple-minded excludedProperties to prevent omitEmpty from traversing/processing specific properties. (Just in case you want to exclude something from processing due to weirdness in requirements.
Any updates on this? I also have a similar use case. Thanks