SyntaxFix
Write A Post
Hire A Developer
Questions
With 9.5 use jsonb_set-
UPDATE objects SET body = jsonb_set(body, '{name}', '"Mary"', true) WHERE id = 1;
where body is a jsonb column type.