Skip to Main Content

SQL & PL/SQL

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 to read COUNT in JSON need advise

1567114Jul 19 2018 — edited Aug 18 2018

Hello,

I have a JSON like as below:

Sample response body :

{
"id": 36,
"organization_id": 3,
"name": "Test Name",
"organization_customer_id": null,
"test_serial": [
"ABCDRRRTTT"
],
"remaining_activations": 1
}

I have to design the JSON like as below and the READ:

p_json_resp is defined as CLOB

l_json              json;

l_json           := json_parser.parser (p_json_resp);

How to get the COUNT of the JSON above

In the below not able to frame it out to get the COUNT

FOR i IN 1 .. json_ext.get_json_list (l_json, '').COUNT

This post has been answered by 1567114 on Jul 20 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 15 2018
Added on Jul 19 2018
11 comments
2,119 views