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.

1

1 Answer 1

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 {
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.