NSInvalidArgumentException',原因:'JSON写入中的类型无效(声音)

NSInvalidArgumentException',原因:'JSON写入中的类型无效(声音),json,parse-platform,nsdictionary,invalid-argument,Json,Parse Platform,Nsdictionary,Invalid Argument,//将Dub保存到数据库 NSDictionary * dict = [NSDictionary dictionaryWithObjectsAndKeys:[DubsUtils dubUrlFromPath:trimmedDubPath], @"url", _sound, @"sound", nil]; if([NSJSONSerialization isValidJSONObject:dict]) { NSLog(@"Valid ... %@", dict); NSError

//将Dub保存到数据库

NSDictionary * dict = [NSDictionary dictionaryWithObjectsAndKeys:[DubsUtils dubUrlFromPath:trimmedDubPath], @"url", _sound, @"sound", nil];

if([NSJSONSerialization isValidJSONObject:dict])
{
    NSLog(@"Valid ... %@", dict);
    NSError *err;
    NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dict options:NSJSONWritingPrettyPrinted error:&err];
    NSLog(@"Done .. err : %@ Data : %@",err,jsonData);


    PFObject *data = [PFObject objectWithClassName:@"DubsData"];
    data[@"dubs"] = dict;

    [data saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
        if (succeeded) {
            // The object has been saved.
            NSLog(@"New dub uploaded...");
        } else {
            NSLog(@"New dub Problem uploaded...");
            // There was a problem, check error.description
        }
    }];

}
else
    NSLog(@"Not Valid ... \n Detail : %@ \n data : ",dict);
O/p:无效。。。详情:{ sound=sound:Hillary Dolphin-url:Dolphin.mp3-类别:类别n\U00b02-名称:本地类别2-lang:en; url=LMHFuxhDfUb9i2tm0Qryn67eZ4kH6n.mov;}


我想将这个dict var对象存储在解析服务器上

代码块现在需要格式化以使代码可读吗?它可读吗?我希望将NSDictionary对象存储在解析服务器数据库中