title: Json C# add in the variable to the json string
body: <p>I want to add my string username and password into the string jsonData however there seems to be an error.    </p>
  
  <pre><code>public async Task&lt;string&gt; authLogin(string username, string password)
      {
          var client = new HttpClient();
          client.BaseAddress = new Uri("http://172.20.129.193/");
  
          string jsonData = @"{""AdminNo"" : """+username+""", """+password+""" : ""password""}";
  
          var content = new StringContent(jsonData, Encoding.UTF8, "application/json");
          HttpResponseMessage response = await client.PostAsync("NYPStudentLifeService/api/student/login",content);
  
          string result = await response.Content.ReadAsStringAsync();
          return result;
      }
  </code></pre>