Sending json object in GET request in swift in Alamofire
<p>I'm trying to execute a GET requst with json object binded to it , This i how i generated JSON object </p>

<pre><code>   let jsonObject: [String: AnyObject] = [

        "ean_code": [
            "type": "match",
            "value": "16743799"
        ]
    ]
</code></pre>

<p>and then I executed the request </p>

<p>like this </p>

<pre><code>        Alamofire.request(.GET,Constant.WebClient.WS_URL + "/product?filters="+String(jsonObject),parameters:parameters)
</code></pre>

<p>but this gave me an error which is canot bind the URL with invalid character </p>

<p>so i encoded the URL from this </p>

<pre><code>let request = String(jsonObject).stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLPasswordAllowedCharacterSet())!
</code></pre>

<p>this will encode the URL but i again this will give me following error</p>

<blockquote>
  <p><strong>Request failed with error: Error Domain=NSCocoaErrorDomain Code=3840 "Invalid value around character 0."
  UserInfo={NSDebugDescription=Invalid value around character 0.}</strong></p>
</blockquote>

<p>so my question is how can I bind a json object to GET URL?? </p>