Open this example in the interactive library
Source code
SELECT json_remove('{"old":1,"new":2}','$.old') AS updated;
Sample output
[
{
"updated": "{\"new\":2}"
}
]
Open this example in the interactive library
SELECT json_remove('{"old":1,"new":2}','$.old') AS updated;
[
{
"updated": "{\"new\":2}"
}
]