My JSON is as follows:
{"t":"1339886","a":true,"data":[],"Type":[['Ants','Biz','Tro']]}
I found the Newtonsoft JSON.NET deserialize library for C#. I tried to use it as follow:
object JsonDe = JsonConvert.DeserializeObject(Json);
How can I access to the JsonDe
object to get all the "Type" Data? I tried it with a loop but it is not working because the object does not have an enumerator.
Best Answer
You can implement a class that holds the fields you have in your JSON
and then use the generic version of DeserializeObject:
Documentation: Serializing and Deserializing JSON