declare
json_obj json_object_t;
begin
--
-- Note the missing quotes around `y` which cause the error:
--
json_obj := json_object_t( '{"x": y}' );
end;
/
"hello\world" (and compare with the ORA-40472: invalid escape in JSON data error message): declare
jsn json_object_t;
begin
jsn := json_object_t.parse(q'<
{
"num": 42,
"txt": "hello\world"
}
>');
end;
/