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

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -