I am trying to parse following json data and use it under the where
clause.
Basic":{
"General":{
"Field1":1234,
"Field2":"6.86"
},
"Stream 0":{
"Type":"LDAP",
"Field4":"LALA1"
},
"Stream 1":{
"Type":"KERBEROS",
"Field4":"LALA2"
},
"Stream 2":{
"Type":"SAML",
"Field4":"LALA3"
},
I can reach to Type
tag like this.
table.column_json::json->'Basic'->'Stream 0'->'Type'
The order of Stream #
is undefined and there could more than 3 Stream
tags.
How can I iterate through each Stream and find if Type:
is "SAML"
then Field4
value is "LALA3"
.