数组转字符串

pragma mark - 数组转字符串

-(NSString *)dicssToJson:(NSArray *)array{
    
    NSError * pasErro = nil;
    NSData * data = [NSJSONSerialization dataWithJSONObject:array options:0 error:&pasErro];
    
    return [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
}

你可能感兴趣的:(数组转字符串)