Im trying to clean up a json stream and get the error listed above
NSString *traveladvice = [json valueForKeyPath:@"travel_advice_article.travel_advice_sections.body.markup"];
which gets me a stream with lots of javascript regular expressions like \U00a0 which I want to remove. Im using to regexlite to remove.
NSString *regexString = @"U00a0";
NSString *replacementString = @"";
NSString *travelparse1 = nil;
travelparse1 = [travelAdvice stringByReplacingOccurrencesOfRegex:regexString
withString:replacementString];
I understand the error but whats confusing me is that traveladvice is an NSString not an NSArray.