0

enter image description here

I followed instructions on SwiftJSON on how to loop through, why the syntax error?

I am using SwiftyJSON xcode6.3 branch.

Jacky Wang
  • 618
  • 7
  • 27
  • possible duplicate of [How to loop through JSON with SwiftyJSON?](http://stackoverflow.com/questions/28365939/how-to-loop-through-json-with-swiftyjson) – Airspeed Velocity Apr 19 '15 at 13:43

1 Answers1

1

"features" in your for-loop is not a type, use key: String instead.

So your code becomes:

for (key: String, subJson: JSON) in json {
vrwim
  • 13,020
  • 13
  • 63
  • 118