How do I construct a JSON value with a nested JSON value as a serialized string? I tried this:
SQL> select json { 'y' : json_serialize(json('{"hello":"world"}')) } x
from dual;
X
--------------------------------------------------------------------
{"y":{"hello":"world"}}
But the result I want is:
{"y":"{\"hello\":\"world\"}"}
I'm using Oracle Database 20c.