Res={"result":["123","563"]}
This is the similar json file i have. I have to loop through it and assign each value as ids. I am trying as
Obj = JsonConvert.DeseraializeObject<classname>(Res);
Foreach(string id in Obj)
{Function();}
I'm getting error as class doesn't have extension for getenumerator
Edit:
I did this
List<classname> objlist = jsonconvert.deserializeObject<list<classname>>(res);
foreach (string id in objlist)
{function();}
getting an error for foreach loop as cannot convert classname to string