I have the following:
dynamic myJSON = JsonConvert.DeserializeObject(data);
Within myJSON there will be a varying number of items that have the same name apart from a number at the end e.g.
string v1 = myJSON.variable1;
string v2 = myJSON.variable2;
string v3 = myJSON.variable3;
Sometimes there could be 3 (as above), sometimes there could be 12, at other times, only 1, or any other number.
How can I add them all to strings when I don't know how many there will be?
TIA