ORA-40177
Expression used for UNNEST clause is not a single row scalar subquery returning JSON data type of an object.
Cause
Expression used for the UNNEST clause in JSON_OBJECT was incorrect.
Action
Use the proper expression for the UNNEST clause in JSON_OBJECT.