You can't load a JSON file using NSArray arrayWith...
. That method can only load a plist file with an array as the root.
If your file is a JSON file you should use:
NSData *jsonData = [NSData dataWithContentsOfURL:fileURL];
NSError *error = nil;
NSArray *jsonArray = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&error];
if (jsonArray) {
// do something with jsonArray
} else {
NSLog(@"Couldn't load JSON from %@: %@", fileURL, error);
}
This assumes the top level of the JSON file is an array.