Created
June 30, 2014 16:44
-
-
Save aladine/5efdc0b33e4d24aecd88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let jsonDictionary = jsonDict { | |
println("json parsed successfully") | |
let total = jsonDictionary["centres"]!.count | |
let json_data = JSONValue(jsonDictionary) | |
if json_data{ | |
for var index = 0; index < total; ++index { | |
var name = json_data["centres"][index]["name"].string | |
if name { | |
//processing value | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment