jsonb_strip_nulls ( target jsonb [,strip_in_arrays boolean ] ) → jsonbDeletes all object fields that have null values from the given JSON value, recursively. If strip_in_arrays is true (the default is false), null array elements are also stripped. Otherwise they are not stripped. Bare null values are never stripped.json_strip_nulls('[{"f1":1, "f2":null}, 2, null, 3]') → [{"f1":1},2,null,3]jsonb_strip_nulls('[1,2,null,3,4]', true) → [1,2,3,4]