title: How to pass Json data as parameter to web api using HttpClient
body: <p>I am using one asp.net application where i am calling web api using HttpClient.</p>
  
  <p>in web API controller i am passing two parameter one is int and second is string.</p>
  
  <p>Below is the code:</p>
  
  <pre><code>public HttpResponseMessage Get(int submissionID, string jsonData)
  {
  
  }
  </code></pre>
  
  <p>This is working fine no issues when i am passing one int and one string parameter using httpClient</p>
  
  <p>Below is my httpClient code:</p>
  
  <pre><code>public void GetWebApiData(int fileID, String jsonData)
  {
      var client = new HttpClient();
      var task = client.GetAsync("http://localhost:1469/api/Smartling/" + fileID + "/"+jsonData)
        .ContinueWith((taskwithresponse) =&gt;
        {
            var response = taskwithresponse.Result;
            var jsonString = response.Content.ReadAsStringAsync();
            jsonString.Wait();
            var getVal = jsonString.Result;
  
        });
      task.Wait();
  } 
  </code></pre>
  
  <p>in the above code if i am passing instead of json data it's giving error response code 400 Bad Request.</p>
  
  <p>same I used with jQuery ajax call and it's working fine no issues.</p>
  
  <p>How to pass JSON data as parameter?</p>