In my Oracle APEX v4.2 project, I am dealing with a sizable table containing about 40 columns and up to 50 rows. My goal is to use SQL to fetch the data from this table and convert each row into a JSON object.
Operating on Oracle 11gR2, I require this JSON object for JavaScript purposes, specifically to fulfill certain graphing needs.
Given that the varchar2(4000) limitation in Oracle SQL queries within APEX poses a challenge, how can I successfully convert all rows into JSON format? My desired outcome would be similar to the following example structure, which could then be utilized in JavaScript:
[{"col1": "value1", "col2": "value2", ....., "col40": "value40"}, {"col1": "value21", "col2": "value22", ....., "col40": "value400"}, etc]