c# - Json.NET parse array in object -
i'm having extremely difficult time parsing multiple arrays out of array, embedded in several object in json. basically json looks like { took:8, success:true, items:[ keywords:{...}, maininfo:{ name:'...', expdate:'...', targetcities:[...], targetstates:[...] }, additionalinfo:{ skills:[], hometime:'' } } my c# looks like: public class job{ public string name{get;set;} public list<string> targetcities{get;set;} public list<string> targetstates{get;set;} public list<string> skills{get;set;} public string hometime{get;set;} } public class jobs{ private jobject o; private list<job> jobs; public jobs(string json){ this.o=jobject.parse(json); } public list<job> tolist(){ list<jobject> alljobs=o["items"].select(t => (jobject)t).tolist(); foreach(jobject in alljobs){ job j=new job(); j.name=(string)i["maininfo"][...