I just started doing C #, and I've been knocking on JSON deserialization for a few seconds now. I am using the Newtonsoft.Json library. I expect only the json response of the array of dictionaries per se
[{"id":"669","content":" testing","comments":"","ups":"0","downs":"0"}, {"id":"482","content":" test2","comments":"","ups":"0","downs":"0"}]
Now I have: (note: loading is just a string containing a json string)
string[] arr = JsonConvert.DeserializeObject<string[]>(download);
I tried many different ways to do this, each failed. Is there a standard way for parsing json of this type?
source
share