I have a table with clob that contains JSON. The JSON already exists, I need to change the hierarchy of the first value.
This is the original json:
{
"configurationByAssetType" :
{
"default" :
{
"sections" :
[
....
]
}}}
I need to put configurationByAssetType under new section - configurationByView:
{
"configurationByView"
{
"default" :{
"configurationByAssetType" :
{
"default" :
{
"sections" :
[
....
]
}}}}}
I want to copy all existing data to be under:
{
"configurationByView"
{
"default" :{