In Oracle 21c, it looks like we can return a resultset as JSON text:
SELECT json_object(*)
from dual;
result:
{"DUMMY":"X"}
That works in db<>fiddle:
Question:
Is there a way to return the JSON text using pretty formatting?
{
"DUMMY":"X"
}