how to pass json in a querystring?
<p>I am trying to send a JSON to the server by encoding it into the URI using Jquery.param but I get the following error.</p>

<pre><code>window.location.href = BriefExportPath+$.param(JSON.stringify({
                        title: $('.ui-dialog-title').text(),
                        items: ko.utils.arrayMap(Neptune.BriefCountrySection.SelectedCountries(), function (item) {
                            return item.ItemName
                        })
                    }))



[CustomAuthorize(Definitions.RoleSonarAdmin)]
        public FileContentResult ExportCsv(string json)
        {
            var x = new System.Web.Script.Serialization.JavaScriptSerializer();
            object obj = x.DeserializeObject(json);
            //return File(Helpers.BriefCsvBytes.GetCsvBytes(items), "text/csv", title); 
            return null;
        }



http://dev.neptune.local/Briefs/ExportCsv?0=%7B&amp;1=%22&amp;2=t&amp;3=i&amp;4=t&amp;5=l&amp;6=e&amp;7=%22&amp;8=%3A&amp;9=%22&amp;10=B&amp;11=r&amp;12=i&amp;13=e&amp;14=f&amp;15=+&amp;16=C&amp;17=o&amp;18=u&amp;19=n&amp;20=t&amp;21=r&amp;22=y&amp;23=+&amp;24=L&amp;25=i&amp;26=s&amp;27=t&amp;28=%22&amp;29=%2C&amp;30=%22&amp;31=i&amp;32=t&amp;33=e&amp;34=m&amp;35=s&amp;36=%22&amp;37=%3A&amp;38=%5B&amp;39=%22&amp;40=A&amp;41=f&amp;42=r&amp;43=i&amp;44=c&amp;45=a&amp;46=%22&amp;47=%2C&amp;48=%22&amp;49=A&amp;50=m&amp;51=e&amp;52=r&amp;53=i&amp;54=c&amp;55=a&amp;56=s&amp;57=%22&amp;58=%2C&amp;59=%22&amp;60=A&amp;61=s&amp;62=i&amp;63=a&amp;64=%22&amp;65=%2C&amp;66=%22&amp;67=E&amp;68=u&amp;69=r&amp;70=o&amp;71=p&amp;72=e&amp;73=%22&amp;74=%5D&amp;75=%7D
</code></pre>

<p><img src="http://i.stack.imgur.com/lCJwK.png" alt="enter image description here"></p>
