@Mounika_Chowdary The example does not look like valid JSON to me. Perhaps it needs to be put into triple back-ticks so the HTML formatter does not strip some of the delimiters out.
{
"org": {
"org1": [
"reliance"
],
"org2": [
"gasoline",
"Hp gasoline"
]
}
}
Will match "gasoline" any where in org.org2
SELECT t.*
FROM mybucket AS t
WHERE ANY v IN t.org.org2 SATISFIES v = "gasoline" END;
{
"org": [{
"org1": [
"reliance"
],
"org2": [
"gasoline",
"Hp gasoline"
]
}]
}
Will match "gasoline" any where in org2
SELECT t.*
FROM mybucket AS t
WHERE ANY o IN t.org SATISFIES (ANY v IN o.org2 SATISFIES v = "gasoline" END) END;