json
jsonb_set
Replaces a path value or creates its final step; earlier path steps must exist.
Formal Syntax & Structure
sql syntaxsql
jsonb_set(target, path, new_value [, create_if_missing])Working Example
Example Snippetsql
SELECT jsonb_set('{"a":1}', '{a}', '7');