c# - Parsing a string with json -
this question has answer here:
- deserializing json dynamic keys 3 answers
http://ddragon.leagueoflegends.com/cdn/5.7.2/data/en_us/item.json how json data looks like. parse it. problem in "data" section, each object ( 1001, 1004, 1006) "basic" type :
how parse c# question.
first create class:
public class foo { public list<basic> basic{get;set;} public string type{get;set;} public string version{get;set;} }
then use newtonsoft,
jsonconvert.deserializeobject<foo>(inputstring)
Comments
Post a Comment