We don't want explicit null to be present on JQ output, so we have to get rid of them somehow. As there is no option neither in gojq nor json.Marshal allowing us to to that, it seems the best way is to simply iterate over a map (we have a map between gojq output and json.Marshal input in transformation) and filter out fields being nulls.
PDP-1295
We don't want explicit null to be present on JQ output, so we have to get rid of them somehow. As there is no option neither in
gojq
norjson.Marshal
allowing us to to that, it seems the best way is to simply iterate over a map (we have a map betweengojq
output andjson.Marshal
input in transformation) and filter out fields being nulls.