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.
Ok I got the answer - It should be like this -
var alluserdata = JObject.Parse(rawjson)["value"].ToObject<List<MyUserData>>();
Collected from the Internet
Please contact [email protected] to delete if infringement.
Click to generate QR
Comments