I have a json.I am trying to parse that with that code.But its says
Could not cast value of type \'__NSArrayM\' to \'NSDictionary\'
The root object in your data is an array, not a object (dictionary).
You need to dynamically decide how to handle your JSON depending on the deserialized object.