I have an array that contains multiple dictionaries. In each dictionary, sometimes the key 'node_title' contains a value in which an apostrophe is returned as '.
How can I remove ' and replace it with an apostrophe for that key in every dictionary inside my array (self.beautyData)?
How I'm pulling my data to the array (ViewController.m, viewDidLoad) :
NSMutableDictionary *viewParams15 = [NSMutableDictionary new];
[viewParams15 setValue:@"salons_beauty_wellness" forKey:@"view_name"];
[DIOSView viewGet:viewParams15 success:^(AFHTTPRequestOperation *operation, id responseObject) {
self.beautyData = [responseObject mutableCopy];
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"Failure: %@", [error localizedDescription]);
}];
Example of the array returned:
2022-05-15 22:26:31.433242-0700 app[26165:11407362] SOME STORES (
{
latitude = "49.263";
longitude = "-123.11";
nid = 77854;
"node_title" = "Jon's Barber Shop";
},
{
latitude = "49.2477";
longitude = "-123.185";
nid = 71308;
"node_title" = "Carla's Cupcakes";
}