Within Oracle APEX v4.2 I have a fairly large table with around 40 columns and up to 50 rows where I need to fetch using SQL and convert each row to a JSON object.
I am using Oracle 11gR2 and need to use this JSON object within javascript in order to perform some graphing requirements.
With Oracle SQL query having a limitation of varchar2(4000) inside APEX, how I can I accomplish the conversion of all rows into JSON? I was looking at a result as follows to use in JavaScript, i.e.:
[{"col1": "value1", "col2": "value2", ....., "col40": "value40"}, {"col1": "value21", "col2": "value22", ....., "col40": "value400"}, etc]