NSData *data1 = nil; [NSJSONSerialization JSONObjectWithData:data1 options:1 error:nil]; 注意这里 的data参数不可以为空,否则会崩溃。