I have a json column named "configuration" in an Oracle database with a data like-
{"sections":[{"active":true,"code":"page.about"},{"active":true,"code":"page.title"}...]}
How can add elements to the "sections" array inside the CLOB? for example, add this object to the CLOB- {"active":false, "code":"page.body"}
I tried to do this-
UPDATE *TABLE_NAME*
SET configuration = JSON_MODIFY(configuration, 'append $.sections',JSON_QUERY(N'{"active":false,"code":"page.body"}'))
but I got this error-
Error report -
SQL Error: ORA-00917: missing comma
00917. 00000 - "missing comma"
*Cause:
*Action:
Thanks!