Size: a a a

2021 February 20

BN

Balamurugan Nataraja... in Oracle APEX
parse is not helping
источник

AV

Alexey Vihristyk in Oracle APEX
Balamurugan Natarajan
parse is not helping
Of course if JSON spec is not normal, for example
{"foo","bar"}

APEX_JSON doesent work, but you can prepare you JSON to right format
источник

AV

Alexey Vihristyk in Oracle APEX
DECLARE 
   j apex_json.t_values;
   l_json_string varchar2(4000);
BEGIN
   l_json_string := '{"foo","bar"}';
   l_json_string := replace(l_json_string,'",','":0,');
   l_json_string := replace(l_json_string,'"}','":0}');

   dbms_output.put_line(l_json_string);
   apex_json.parse(p_values => j,p_source  => l_json_string);
   dbms_output.put_line(apex_json.get_members(p_path=>'.',p_values=>j)(1)); -- foo
   dbms_output.put_line(apex_json.get_members(p_path=>'.',p_values=>j)(2)); -- bar
END;
источник

AV

Alexey Vihristyk in Oracle APEX
This right way to send array of data:

DECLARE 
   l_json_string varchar2(4000);
   l_count int;
    v apex_json.t_value;
BEGIN
   l_json_string := '{"data":["foo","bar"]}';
   dbms_output.put_line(l_json_string);
   apex_json.parse(p_source  => l_json_string);
   l_count := APEX_JSON.get_count(p_path => 'data');
   DBMS_OUTPUT.put_line(' Count   : ' || l_count);

   FOR i IN 1 .. l_count LOOP
      v := apex_json.get_value(p_path=>'data[%d]',p0=> i);
      dbms_output.put_line(v.varchar2_value);
   END LOOP;

END;
источник

@

@ver in Oracle APEX
How about using Oracle sql json functions : json_value, json_table?
источник

BN

Balamurugan Nataraja... in Oracle APEX
Got it working by adding dummy key and then parse
источник

BN

Balamurugan Nataraja... in Oracle APEX
DECLARE
   l_clob1 clob;
   l_clob2 clob;
BEGIN


   SELECT  '{"wa":'||log_clob||'}'
   INTO    l_clob1
   FROM    app_log_tb
   WHERE   id = 3630;
   -- 3648

   apex_json.parse(p_source => l_clob1, p_strict => false);
   l_clob2 := apex_json.GET_VARCHAR2 (p_path=>'wa');
   dbms_output.put_line(apex_json.GET_VARCHAR2 (p_path=>'status'));
   dbms_output.put_line(apex_json.GET_VARCHAR2 (p_path=>'message'));
   
END;
источник

BN

Balamurugan Nataraja... in Oracle APEX
it automatically unstringifyed
источник

BN

Balamurugan Nataraja... in Oracle APEX
Alexey Vihristyk
Of course if JSON spec is not normal, for example
{"foo","bar"}

APEX_JSON doesent work, but you can prepare you JSON to right format
This was the hint
источник

BN

Balamurugan Nataraja... in Oracle APEX
Alexey Vihristyk
Of course if JSON spec is not normal, for example
{"foo","bar"}

APEX_JSON doesent work, but you can prepare you JSON to right format
Thanks
источник

AV

Alexey Vihristyk in Oracle APEX
JSON API have very strong specification and string like this "{1,2,3}' - is not JSON and APEX_JSON can not parse this
https://jsonapi.org/format/
источник

BN

Balamurugan Nataraja... in Oracle APEX
yeah the problem is that it is  stringifyed..
источник

AV

Alexey Vihristyk in Oracle APEX
In start of 2000 we used own format for http :)
"first_row"|1|2|3]"second_row"|5|6|7]
источник
2021 February 21

AL

Alec Larson in Oracle APEX
What unfair?
источник

b

beli in Oracle APEX
I used plugin to get latitude and longitude
But it worked only when i used LOCALHOST or 127.0.0.1
If i used another ip to call the url from another pc it didn't work
Can anyone help me please?
источник
2021 February 22

RA

Raha A. in Oracle APEX
Hi
I want to implement document managemen.
What is the situation?
источник

SP

Sebastia Pujol in Oracle APEX
beli
I used plugin to get latitude and longitude
But it worked only when i used LOCALHOST or 127.0.0.1
If i used another ip to call the url from another pc it didn't work
Can anyone help me please?
источник

SP

Sebastia Pujol in Oracle APEX
Note: As of Chrome 50, the Geolocation API will only work on secure contexts such as HTTPS. If your site is hosted on an non-secure origin (such as HTTP) the requests to get the users location will no longer function.
источник

JK

Joel Kallman in Oracle APEX
You're the hero! Oracle would like to showcase the success of the Oracle APEX community, your success.

Announcing:

Real-World Low Code: APEX App of the Month

https://bit.ly/apex-app-of-the-month
источник

RP

Rafael Pinheiro in Oracle APEX
did it work at 3 am?
источник