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