This is the entire printed console when the code is ran:
Console Out - https://developer.apple.com/forums/content/attachment/3c3a44c4-37ca-4c33-9789-deba028c4d53
And what I mean with switch values, when I change if let location = result["location"] as? String
, to if let location = result["name"] as? String
, I am able to fill the name array and gets printed:
name array ["Roll N Noodle Food Court", "Jalisco Mexican Food", "True Food Kitchen", "Corazon Mexican Food", "Chick-fil-A", "Wendy\'s", "Jack in the Box", "Jack in the Box", "Chick-fil-A", "Jack in the Box", "Chick-fil-A", "Wendy\'s", "Wendy\'s", "Jora Peruvian food", "Jack in the Box", "Rubio\'s Coastal Grill", "sweetgreen", "Taqueria", "Arby\'s", "New Port Dim Sum and Chinese Food"]
Topic:
Programming Languages
SubTopic:
Swift
Tags: