c# - Convert string[] of json object to List<T> -
i using json.net json object parsing. have string array has of json objects. instead of 1 string json array, have each json object on different index of string array.
i need de-serialize string[] of json object list<t>.
if string of json array list<t> call jsonconvert.deserializeobject<list<t>>(result);
but best approach convert string[] of jsonobject list<t>.
you can in simple way using linq :
var list = jsonobjects.select(jsonconvert.deserializeobject<t>).tolist();
Comments
Post a Comment