We have a requirement to create a stored procedure in Oracle, passing input variables and output to be in JSON format. I've tried using listagg()
but getting error as "result of string concatenation is too long" while executing the procedure.
The expected output has to be in JSON format from the procedure.