pljson

Parse array of string in PLJSON oracle

蓝咒 提交于 2021-01-29 10:00:42
问题 I have to parse a array of string in my JSON with ORACLE dans PLJSON module. I'm able to parse data without array like CLE,X,Y.. But when I want to get COLORS or REGROUPEMENT_COLORS, this return me nothing. There is the code: DECLARE obj json := json(); obj_1 json := json(); arr json_list := json_list(); test varchar2(255); BEGIN obj := json('{ "DASHBOARD": { "userUid": "", "DATA_DASHBOARD": [ { "CLE": "TESTTEST", "X": "", "Y": "", "COL": "", "ROW": "", "CLASSCOLOR": "", "COLORS": ["df","df"]

How to parse a json tree using plsql pljson framework?

两盒软妹~` 提交于 2019-12-25 00:23:08
问题 I am using a webservice http://maps.google.com/maps/api/geocode/json?address=mysore to get location data in my plsql code. I am able to access the first level data using help from work with json in oracle. But this provides help to get first level data from json. I need to further get the lat and lng values. Can anyone help me with this? Location = { "bounds" : { "northeast" : { "lat" : 44.9483849, "lng" : -93.1261959 }, "southwest" : { "lat" : 44.9223829, "lng" : -93.200307 } }, "location" :

How do I use PL/JSON's to_clob method?

◇◆丶佛笑我妖孽 提交于 2019-12-12 03:15:21
问题 I have a procedure like the following: procedure receive_json(in_json in json) is my_clob clob; begin -- This line keeps returning "wong number or types: to_clob" in_json.to_clob(in_json, my_clob); -- rest of my procedure end receive_json; How do I get the to_clob method to actually put the JSON in my CLOB? 回答1: PL/JSON does not manage the CLOB for you. You have to do that yourself: procedure receive_json(in_json in json) is my_clob clob; begin dbms_lob.createtemporary(my_clob, true); in_json

Does PL/JSON software support UTF-8 characters

落爺英雄遲暮 提交于 2019-12-11 02:54:22
问题 I'm using PL/JSON to parse data from MongoDB to Oracle DB. The Packages work fine with latin characters. However, whenver there is json_value with chinese characters, the resulted value in oracle is totally corrupted (question marks, symbole ... etc). As an example, I use the following line to parse: Remarks := json_ext.get_string(json(l_list.get(i)),'Remarks'); I'm aware the type json and get_string function are using varchar and not nvarchar. More importantly, Oracle DB instance supports

Store big JSON files into Oracle DB

痞子三分冷 提交于 2019-11-28 06:08:38
问题 I'm using the following script in order to read data from MongoDB as JSON files. DECLARE l_param_list VARCHAR2(512); l_http_request UTL_HTTP.req; l_http_response UTL_HTTP.resp; l_response_text CLOB; --l_response_text VARCHAR2(32767); l_list json_list; A_id VARCHAR2(100); Photo VARCHAR2(32767); A_Name VARCHAR2(100); Remarks VARCHAR2(100); Status VARCHAR2(100); UserId VARCHAR2(100); A_Date VARCHAR2(100); A_Time VARCHAR2(100); MSG_status VARCHAR2(100); Oracle_Flag VARCHAR2(100); acl VARCHAR2(100