title: IOS. Screened symbols in URL
body: <p>I need to send a request to a server and get a response.</p>
  
  <p>I have the following URL:</p>
  
  <p><a href="http://192.168.200.10:9044/api/tables/?filter=" rel="nofollow noreferrer">http://192.168.200.10:9044/api/tables/?filter=</a>{"open_visible":true,"related":false}</p>
  
  <p>For the query I'm using Alamofire. Here are some ways how I do it:</p>
  
  <p>1)    </p>
  
  <pre><code>class func getTables(completion: @escaping (_ response : DataResponse&lt;TablesResponse&gt;) -&gt; Void) {
      SVProgressHUD.show()
      let getTablesPath = apiEntryPoint + "tables/?filter={\"open_visible\":true,\"related\":false}"
  
      Alamofire.request(getTablesPath)
          .validate()
          .responseObject { (response: DataResponse&lt;TablesResponse&gt;) in
              SVProgressHUD.dismiss()
              completion(response)
      }
  }
  </code></pre>
  
  <p>I get the error: <a href="https://i.stack.imgur.com/uAEUh.png" rel="nofollow noreferrer">screenshot</a></p>
  
  <p>2) </p>
  
  <pre><code>class func getTables(completion: @escaping (_ response : DataResponse&lt;TablesResponse&gt;) -&gt; Void) {
      SVProgressHUD.show()
      let getTablesPath = apiEntryPoint + "tables/?filter={%22open_visible%22:true,%22related%22:false}"
  
      Alamofire.request(getTablesPath)
          .validate()
          .responseObject { (response: DataResponse&lt;TablesResponse&gt;) in
              SVProgressHUD.dismiss()
              completion(response)
      }
  }
  </code></pre>
  
  <p>I get the error.</p>
  
  <p>3) </p>
  
  <pre><code>class func getTables(completion: @escaping (_ response : DataResponse&lt;TablesResponse&gt;) -&gt; Void) {
      SVProgressHUD.show()
      var getTablesPath = apiEntryPoint + "tables/?filter="
  
      let jsonParameters = ["open_visible":true, "related":false]
      if let json = try? JSONSerialization.data(withJSONObject: jsonParameters, options: []) {
          if let content = String(data: json, encoding: .utf8) {
              getTablesPath += content
          }
      }
  
      Alamofire.request(getTablesPath)
          .validate()
          .responseObject { (response: DataResponse&lt;TablesResponse&gt;) in
              SVProgressHUD.dismiss()
              completion(response)
      }
  }
  </code></pre>
  
  <p>I get the error.</p>
  
  <p>4)</p>
  
  <pre><code>class func getTables(completion: @escaping (_ response : DataResponse&lt;TablesResponse&gt;) -&gt; Void) {
      SVProgressHUD.show()
      let getTablesPath = apiEntryPoint + "tables/"
  
      Alamofire.request(getTablesPath, parameters: ["open_visible":true, "related":false])
          .validate()
          .responseObject { (response: DataResponse&lt;TablesResponse&gt;) in
              SVProgressHUD.dismiss()
              completion(response)
      }
  }
  </code></pre>
  
  <p>I got all tables. Without taking into account the desired parameters. It's bad.</p>
  
  <p><strong>QUESTION</strong></p>
  
  <p>As I can send a request for the server, considering the necessary parameters.</p>