title: Json.Net convert complex querystring to JsonString
body: <p>I am implementing a utility method to convert queryString to JsonString. </p>
  
  <p>My code is as follows:</p>
  
  <pre><code>        public static string GetJsonStringFromQueryString(string queryString)
          {
              var nvs = HttpUtility.ParseQueryString(queryString);
              var dict = nvs.AllKeys.ToDictionary(k =&gt; k, k =&gt; nvs[k]);
              return JsonConvert.SerializeObject(dict, new KeyValuePairConverter());
          }
  </code></pre>
  
  <p>when I test with the following code: </p>
  
  <pre><code> var postString = "product[description]=GreatStuff" +
                      "&amp;product[extra_info]=Extra"; 
   string json = JsonHelper&lt;Product&gt;.GetJsonStringFromQueryString(postString);
  </code></pre>
  
  <p>I got </p>
  
  <pre><code>{
      "product[description]":"GreatStuff",
      "product[extra_info]":"Extra",
  
        ...
  
     }
  </code></pre>
  
  <p>what I would like to get is </p>
  
  <pre><code>{
      "product":{
         "description": "GreatStuff",
         "extra_info" : "Extra",
         ...
      }
  }
  </code></pre>
  
  <p>How can I achieve this without using System.Web.Script Assembly? (I am on Xamarin and have no access to that library)</p>