I am getting this json from a url, the return JSON is:
[{\"id\":1,\"name\":\"Mary\"},{\"id\":2,\"name\":\"John\"}]
I want to display the n
If your is finally
let jsonResult = [{"id":1,"name":"Mary"},{"id":2,"name":"John"}]
var jsonDictResult[String: Int] = jsonResult;
Updated:
let jsonResult: AnyObject? = NSJSONSerialization.JSONObjectWithData(data,
options: NSJSONReadingOptions.AllowFragments,
error:&parseError)
Updated:
Make the JSON results in a DICT and get it with a loop "for (key, value)"