I\'m a junior developer, and I got a code for this:
(NSString *)encodedStringFromObject:(id)object { return [[object description] stringByAddingPercentEs
URL = [[NSString stringWithFormat:@"%@XYZ",API_PATH]stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];