I would like to specify some keywords from the json result and exclude the result. (For example, in the image, I want to exclude two results of McDonald's of name.) I searched variously, but I do not know how to do it.
Thanks!
json.results
for i in 0...totalHitCount - 1{
if json["results"][i]["geometry"]["location"]["lat"] != "" &&
json["results"][i]["geometry"]["location"]["lng"] != "" &&
json["results"][i]["name"] != "" {
let extractedExpr = ShopData(lat: json["results"][i]["geometry"]["location"]["lat"].double,lng:json["results"][i]["geometry"]["location"]["lng"].double,name:json["results"][i]["name"].string)
print(json["results"][i]["name"].string)
let shopData = extractedExpr
self.shopDataArray.append(shopData)
print(self.shopDataArray.debugDescription)
}
else{
print("")
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…