Skip to main content

prune_empty_fields

Function prune_empty_fields 

Source
pub fn prune_empty_fields(v: Value) -> Value
Expand description

Recursively remove null, empty-string, empty-array, and empty-object fields from a JSON value tree.

Per MHLW SDS data exchange format ยง3.3, fields with no valid value must be omitted entirely rather than serialised as "" or null.