Waiting for PostgreSQL 18 – Allow json{b}_strip_nulls to remove null array elements

Read Original

This technical article details a new feature committed for PostgreSQL 18. It explains how the jsonb_strip_nulls and json_strip_nulls functions now accept an optional 'strip_in_arrays' parameter. When set to true, the function removes null elements from JSON arrays in addition to null-valued object fields, with examples demonstrating its behavior on nested structures.

Waiting for PostgreSQL 18 – Allow json{b}_strip_nulls to remove null array elements

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week