Drop nulls
drop_nulls
Drop-nulls strategy — remove empty values recursively.
DropNullsStrategy
Bases: SmeltStrategy
Recursively remove None, empty strings, empty lists, and empty dicts.
Source code in packages/axm-smelt/src/axm_smelt/strategies/drop_nulls.py
apply(ctx)
Remove empty values from JSON data.
Uses ctx.parsed when available to skip
json.loads. Propagates the cleaned object as
parsed on the returned context.