json
jsonb_insert
Inserts before or after an array position; object insertion requires an absent key.
Formal Syntax & Structure
sql syntaxsql
jsonb_insert(target, path, new_value [, insert_after])Working Example
Example Snippetsql
SELECT jsonb_insert('[1,3]', '{1}', '2');