Parse json data using APEX_JSON in Oracle PL SQL

How to parse JSON data in oracle apex ? Yes, We can parse json data with the help of apex_json and apex_json.t_values. User apex_web_service.make_rest_request Authorization method is Bearer Token Store the response in CLOB variable Parse the response json content with apex_json.t_values Count no of rows in json content Create for loop and get the object values using apex_json.get_varchar2 Insert / Update object value variables … Continue reading Parse json data using APEX_JSON in Oracle PL SQL

Oracle Apex Use of apex_web_service.make_rest_request

Instead of use UTL_HTTP.BEGIN_REQUEST in PL/SQL oracle apex offered to make web service request through “apex_web_service.make_rest_request” API.  Example Web Service Sample URL: http://quotes.rest/qod.json Syntax:- DECLARE l_response CLOB; BEGIN l_response:= apex_web_service.make_rest_request(p_url => ‘http://quotes.rest/qod.json’, p_http_method => ‘GET’ ); END; Webservice Response:- { “success”: { “total”: 1 }, “contents”: { “quotes”: [ { “quote”: “If you want to test your memory, try to recall what you were worrying about … Continue reading Oracle Apex Use of apex_web_service.make_rest_request