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