[C # .net] C # json how to parse a text file

 

 

 

C # parse Json string may be by Newtonsoft.Json Json serialized into a string object values ​​from the object reacquisition

Newtonsoft.Json.JsonConvert.DeserializeObject<dynamic>(jsonString)

1. Right-click on an item, select [NuGet management package], the search interface NuGet Newtonsoft.Json, and installed in the project

2. The use of object value after conversion of type dynamic Json, conversion reacquisition

3.json file as follows

 

Guess you like

Origin www.cnblogs.com/masonlu/p/11225893.html