get empty string at server when trying to send json encoded string to url
<p>Get empty string object when sending JSON encoded string in URL</p>

<pre><code>            string jdata = JsonConvert.SerializeObject(mylist);
            string jsonstr = "records=" + jdata;
            //File.WriteAllText("str.json", jsonstr);

            string url = "http://meraclass.com/staging/cron_attendance/synchronize";
            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
            httpWebRequest.ContentType = "application/json; charset=utf-8";
            httpWebRequest.Accept = "application/json";
            httpWebRequest.Method = "POST";
            httpWebRequest.Timeout = 10000;
            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
            {
                streamWriter.Write(jdata);

            }
</code></pre>

<p>Here <code>mylist</code> is a list which stores data from a database and <code>mylist</code> will look like this:</p>

<pre><code>mylist[name]=saurabh;
mylist[age]=26;
</code></pre>

<p>And so on..</p>