Changed the json data type from NSDictionary to NSArray