I have a JSON Array like
model.Users = ["Joe","Barny","Power","Tester"]
the model is dynamic
I want to convert model.Users to string[] Users
string[] Users = model.Users
How can I do that?
I have a JSON Array like
model.Users = ["Joe","Barny","Power","Tester"]
the model is dynamic
I want to convert model.Users to string[] Users
string[] Users = model.Users
How can I do that?
string[] Users = new string[20];
int i = 0;
foreach ( string item in model.Users )
{
Users[i] = item;
i++;
}