select statement produces an ORA-40587: invalid JSON type error. select json_object_t('{"num": 42, "txt": "hello world"}') from dual;
declare
j json_object_t;
begin
j := json_object_t('{"num": 42, "txt": "hello world"}');
end;
/
json_object_t is not a persistable type. declare obj json_element_t; begin obj := json_element_t.parse(42); end; /
declare
obj json_element_t;
begin
obj := json_element_t.parse('{"num": 42}');
end;
/
declare
obj json_element_t;
begin
obj := json_element_t.parse('[1,2,3]');
end;
/