- (NSString*)DicToString:(NSDictionary*)dic {
NSError*error;
NSData*policyData = [NSJSONSerializationdataWithJSONObject:dicoptions:kNilOptionserror:&error];
if(!policyData && error)
{
NSLog(@"Error creating JSON: %@", [errorlocalizedDescription]);
returnnil;
}
NSString* policyStr = [[NSStringalloc]initWithData:policyDataencoding:NSUTF8StringEncoding];
policyStr = [policyStrstringByReplacingOccurrencesOfString:@"\\/"withString:@"/"];
policyData = [policyStrdataUsingEncoding:NSUTF8StringEncoding];
returnpolicyStr;
}