Get array value

“addressDetails”: {
“R”: {
“city”: “XYZ”,
}

“R”: {
“city”: “ABC”,
}

}

In the above array I want to select the same item where the city name is ABC.