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