I have a HCLOB with below sample entry
"relist":[{"name":"XYZ","action":["Manager","Specific User List"],"flag":false}]
When I try to get name or flag using JSON_VALUE I am able to get it as it has single field , but I want to get the value for action . I read that JSON_VALUE only supports 1 entry .
Is there any workaround to get both values of action ?
Regards.
Use
JSON_TABLE
with a nested path:Which, for the sample data:
Outputs:
Or use the indices of the array to get the actions:
Which outputs:
db<>fiddle here