I have a json like this -
Now I want to convert all "value" (just value json array) to a list of class -
JavaScriptSerializer js = new JavaScriptSerializer();
var alluserdata = js.Deserialize<List<MyUserData>>(rawjson);
But alluserdata is always null.
答案 0 :(得分:0)
Ok I got the answer - It should be like this -
var alluserdata = JObject.Parse(rawjson)["value"].ToObject<List<MyUserData>>();