NSString *string = @" spaces in front and at the end "; NSString *trimmedString = [string stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
NSDictionary --> NSString + (NSString*)stringINJSONFormatForObject:(id)obj { NSData *jsonData = [NSJSONSerialization dataWithJSONObject:obj options: // If that option is not set, the most compact possible JSON will be generated error:nil]; NSString *