I am Writing below query to generate a JSON
:
SELECT
json_object ('Product_id' value PROID,'Product_name' value PRONAME)
from Product
Which Actually results in JSON
in a CLOB
field and the Output is not Pretty. The output looks like below:
{"Product_id":"PRD001","Product_name":"Dairy"}
The output i am expecting should be something like below:
{
"Product_id":"PRD001",
"Product_name":"Dairy"
}
This Pretty format JSON should be stored in an IFS path.
Could anyone help me to get this done. Any inputs in this area is much appreciated.