PostgreSQL json_strip_nulls() 函数递归地删除对象中的值为 null 的字段,非对象字段的 null 值不处理。
json_strip_nulls()
参考:https://www.sjkjc.com/postgresql-ref/json_strip_nulls/