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?
If model.Users
is of type Newtonsoft.Json.Linq.JArray
try to call:
string[] Users = model.Users.ToObject<string[]>()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With