c# - Parsing a string with json -


this question has answer here:

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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -