I want to achieve the below JSON format using JSON_OBJECT. Please help.
{
"abc": {
"input": 10,
"max": 20,
"check": 30
},
"xyz": {
"income": 198000
}
}
Try to achieve the same using the below query.
SELECT JSON_OBJECT
(
'agri_Expense' VALUE
JSON_OBJECT(
'input' VALUE 10,
'max' VALUE 20,
'check' VALUE 30
) JSON_OBJECT('xyz'
JSON_OBJECT('income' VALUE( 19800 ) )
)
FROM DUAL
Please help. syntax issue.