NSString *textStr = @"%7B%22buid%22%3A%22%22%2C%22desc%22%3A%22%E4%B8%8D%E5%90%8C%E6%84%8F%E6%82%A8%E7%9A%84%E7%BB%91%E5%AE%9A%E8%AF%B7%E6%B1%82%22%2C%22deviceno%22%3A%22%22%2C%22list%22%3A%5B%5D%2C%22nickname%22%3A%22%E6%9D%A8%E5%B8%86%22%2C%22toNickname%22%3A%223001%22%2C%22type%22%3A%22b%22%7D";
NSString *str = [textStr stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
str = [str stringByReplacingOccurrencesOfString:@"{" withString:@""];
str = [str stringByReplacingOccurrencesOfString:@"}" withString:@""];
NSArray *array = [str componentsSeparatedByString:@","];
NSMutableDictionary *dic = [[NSMutableDictionary alloc]init];
[array enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
NSString *string = obj;
string = [string stringByReplacingOccurrencesOfString:@"\"" withString:@""];
NSLog(@"%@",string);
NSRange range = [string rangeOfString:@":"];
[dic setObject:[string substringFromIndex:range.location +1] forKey:[string substringToIndex:range.location]];
}];
NSLog(@"%@",dic);
NSLog(@"%@",dic[@"desc"]);
for (NSString *str1 in [dic allKeys]) {
NSLog(@"%@",str1);
}