标签:
来自这里:http://stackoverflow.com/questions/3142495/deserialize-json-into-c-sharp-dynamic-object
If you are happy to have a dependency upon the System.Web.Helpers
assembly, then you can use the Json
class:
dynamic data = Json.Decode(json);
要新增System.Web.Helpers,需要安装Microsoft.Aspnet.Webpages库,可以通过nuget安装。
标签:
原文地址:http://www.cnblogs.com/s5689412/p/5701805.html