参阅:http://stackoverflow.com/questions/7003740/how-to-convert-namevaluecollection-to-json-string
thenvc.AllKeys.ToDictionary(k => k, k => thenvc[k]);
If you need to do the conversion frequently, you can also create an extension method to NameValueCollection: