This is my data array :
[{
"CodeDescription": "Spouse",
"CodeID": "2",
"CodeType": "HouseOwn",
"ParentCodeID": "",
"ParentType": ""
}, {
"CodeDescription": "Parent",
"CodeID": "3",
"CodeType": "HouseOwn",
"ParentCodeID": "",
"ParentType": ""
}, {
"CodeDescription": "AAA",
"CodeID": "6",
"CodeType": "City",
"ParentCodeID": "",
"ParentType": ""
}, {
"CodeDescription": "Own",
"CodeID": "1",
"CodeType": "HouseOwn",
"ParentCodeID": "",
"ParentType": ""
}, {
"CodeDescription": "BBB",
"CodeID": "006",
"CodeType": "Area",
"ParentCodeID": "6",
"ParentType": "City"
}, {
"CodeDescription": "CCC",
"CodeID": "Z01",
"CodeType": "Area",
"ParentCodeID": "6",
"ParentType": "City"
}]
How do I get all CodeDescription
's of the objects where the CodeType
has the value "HouseOwn"
?