title: How do I create a Dictionary<string,string> for nested object
body: <p>I am retrieving the following JSON via a POST to an API</p>
  
  <pre><code>{
      "State":"Andhra_Pradesh",
      "District":"Guntur", 
      "Fact":"SELECT", 
      "Description":"",
      "FactDate":"",
      "FactNumber":"",
      "FactType":"SELECT",
      "Fact":{"Id":"1"}
  }
  </code></pre>
  
  <p>I am able to execute the Ajax request via javascript, but I also want to consume the API through C# code.</p>
  
  <p>I am using the below code, but I'm not quite sure on how to add the Fact object?</p>
  
  <pre><code>var values = new Dictionary&lt;string, string&gt;
              {
                  { "State", selectedState },
                  { "District", selectedDistrict },
                  { "Fact", ""},
                  { "FactType", ""},
                  { "FactNumber", ""},
                  { "Description", ""},
                  {"Fact", "{Id,1}" },
                  {"FactDate", factDate.Date.ToString() }
              };
  
  using (var httpClient = new HttpClient())
                  { 
  var content = new FormUrlEncodedContent(values); 
  var response = await httpClient.PostAsync("http://api.in/" + "test", content);
  }
  </code></pre>
  
  <p>How do I add the Fact object to Dictionary?</p>