0
我有阵从中我得到抽象的价值是NewsValue响应为空创建的NSDictionary
(
{
NewsId = 12;
NewsValue = "{\n abstract = \"Today P.M of India Mr. Narender Modi visited for the eve of Agarasen \\njayanti
\\n\";\n created = 1444733102;\n imgUrl = \"\";\n nid = 12;\n title = \"Latest news\";\n}";
Title = "Latest news";
}
)
我想下转换NewsValue在字典。
NSData *data = [[[tableDataArray objectAtIndex:indexPath.row]objectForKey:@"NewsValue"] dataUsingEncoding:NSUTF8StringEncoding];
NSDictionary *jsonResponse = [NSJSONSerialization JSONObjectWithData:data
options:kNilOptions
error:&error];
NSLog(@"%@",jsonResponse);
他们给出的答复为空。