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 fetch the values from JSON in Oracle 11g SQL

1047637Mar 31 2020 — edited Apr 2 2020

Hi Dear Friends,

Hope you are doing good .

I am stuck in a situation where in I need to extract the values for keys from JSON and it has to be done in Oracle 11g, SQL only and no PL/SQL .

Below is the JSON ..

I need to get the values for PartyName, PartyTypeCode etc from below JSON in Oracle SQL,11g .

{

"relationships": {

"keyIndicator": false,

"keyContIndicator": false,

"relatedParties": [{

"keyPosition": "Position2",

"PartyName": "KEY CONTROLLER CONNECTED KEY CONT CONNECTED",

"RelationshipCode": "3",

"IndetificationNumber": null,

"PartyTypeCode": "000001",

"individualParty": {

"individualDetails": {

"residentialAddress": {

},

"CitizenshipCodes": ["AU"]

}

},

"orgConnectedParty": {

"registeredAddress": {

}

},

"ExistingCustomerIndicator": false

},

{

"PartyName": "TEST",

"RelationshipCode": "B",

"IndetificationNumber": null,

"PartyTypeCode": "000001",

"keyPosition": "Position2",

"individualParty": {

"individualDetails": {

"residentialAddress": {

},

"CitizenshipCodes": ["MO"]

}

},

"organisationParty": {

"registeredAddress": {

}

},

"ExistingCustomerIndicator": false

},

],

"partyRelationships": []

}

}

Thanks very much in Advance ..

Comments
Post Details
Added on Mar 31 2020
7 comments
5,829 views