KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've got a JArray that represents the json substring [1,2,3] . I'd like to turn it into an int[] instead. What's the correct way of doing this? The best way I've found so far is to do the following: int[] items = new int[myJArray.Count]; int i = 0; foreach (int item in myJArray) { items[i++] = item; }
Tags (comma-separated)
Save Edits
Cancel