json

json_strip_nulls

Removes null-valued object fields recursively, preserving null array elements.

Formal Syntax & Structure

sql syntaxsql
json_strip_nulls(json)

Working Example

Example Snippetsql
SELECT json_strip_nulls('{"a":null,"b":7}');
SQL Reference