I bring my Json data in using the downloadstring() function. I then deserialize it (will show below) but I am not sure what happens to the data after that. I don't know how to call it or how to manipulate it, let alone find it. I'm new to Json, this is obviously a really easy question, but I can't figure it out.
Here is the code
var data = c.DownloadString("http:...");
dynamic jsdonData = JsonConvert.DeserializeObject<dynamic>(data);
Console.WriteLine(jsonData);?????????????????
The Json Data looks similar to this.
"$id":"1",
"$values":[
{
"$id":"2",
"ID":....,
"MSSCompanyID":....,
"CircuitID":"....",
"CompanyName":"...",
"Metrics":{
"$id":"3",
"$values":[
{
"$id":"4",
"longId":1164568,
"unit":"......",
"name":"...."
},
{
"$id":"5",
"longId":1164757,
"unit":".....",
"name":"......"
}
]
}
},
{
"$id":"6",
"ID":....,
"MSSCompanyID":......,
"CircuitID":"......",
"CompanyName":"....",
"Metrics":{
"$id":"7",
"$values":[
{
"$id":"8",
"longId":...,
"unit":".......",
"name":"......."
},
{
"$id":"9",
"longId":1164757,
"unit":"......",
"name":".........."
}
]
}
},
The Json is valid, the downloadstring DOES pull the json like it should. I am not sure about the deserializing though.