C# JSon转换

    1. 先添加System.Web.Extensions.dll引用

  var js = new System.Web.Script.Serialization.JavaScriptSerializer();
  string test_json = "{"name":"tom","nickname":"tony","sex":"male","age":20,"email":"123@123.com"}";
  var jarr = js.Deserialize<Dictionary<string, object>>(test_json);
  foreach (var j in jarr)
  {
      Console.WriteLine(string.Format("{0}:{1}", j.Key, j.Value));
  }

2.使用这个类 Newtosonjson.dll
更多方法参考:http://www.cnblogs.com/usharei/archive/2012/04/24/2467578.html
原文地址:https://www.cnblogs.com/louby/p/5569762.html