ORA-61719
invalid input for JSON_SCALAR conversion as data_type
        - data_type: The output data type.
Cause
An attempt was made to cast an input value to produce a JSON scalar value of incompatible data type.
Action
Use an input value that is compatible with output JSON scalar type.