Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can i get rid of the error "Error: SyntaxError: Unexpected end of JSON input"?

User_RVKR0Apr 26 2021 — edited Apr 26 2021

Since I am using APEX_JSON to create json data out of table data, I am getting this error on page load. Can anyone tell me the reason or any solution asap ?
EX: OPEN v_cur_sql FOR v_query;
APEX_JSON.initialize_clob_output;
apex_json.open_object;
apex_json.write('charts',v_cur_sql);
apex_json.close_object;
DBMS_OUTPUT.put_line(APEX_JSON.get_clob_output);
APEX_JSON.free_output;
v_query has my table's data.

Comments
Post Details
Added on Apr 26 2021
3 comments
1,696 views