Forum Discussion
cjhoward18
4 years agoEmployee
Hi,
You can achieve this by using a mapper snap with the following expression:
$.filter(value => value != null)
mapped to the target path $
this will filter all values out that equal null, keeping only the key-value pairs in which the value is not null.
Keep in mind this will only work for 1 level of nesting as I noticed your data was. If it does need to work with nested JSON fields it would be a different expression that I can provide you with as well if needed.