title: Alamofire 3 Custom Encoding To Alamofire 4 Custom Encoding
body: <p>I have method writing in Alamofire 3 with customParameterEncoding. This custom encoding just replaces "[]=" with "=" in queryString and returns it.</p>
  
  <pre><code>Alamofire.request(.GET, SearchURL, parameters: params, encoding: customEncoding, headers: headers).validate().responseJSON {
              response in
              switch response.result {
              case .success:
                  print("success")
                  break
              case .failure(let error):
                  print("Error: " + error.localizedDescription)
                  break
              }
          }
  </code></pre>
  
  <p>and custom encoding parameter </p>
  
  <pre><code>let customEncoding =  ParameterEncoding.Custom { requestConvertible, parameters in
      let (mutableRequest, error) = ParameterEncoding.URL.encode(requestConvertible, parameters: parameters)
      mutableRequest.URL = NSURL(string: mutableRequest.URLString.stringByReplacingOccurrencesOfString("%5B%5D=", withString: "="))
      return (mutableRequest, error)
  }
  </code></pre>
  
  <p>How to convert customEncoding to Alamofire 4 version?</p>