I try to use http://www.codeplex.com/Json to extract values from a json object.
I use imdbapi.com and they return json like this:
{\"Title\": \"Sta
class TypeHere{
string Name {get;set;}
}
TypeHere object = JsonConvert.DeserializeObject< TypeHere >(jsonString)
// Ex. output
object.Name;
This should help you http://james.newtonking.com/pages/json-net.aspx
string json = @"{
""Name"": ""Apple"",
""Expiry"": new Date(1230422400000),
""Price"": 3.99,
""Sizes"": [
""Small"",
""Medium"",
""Large""
]
}";
JObject o = JObject.Parse(json);
//This will be "Apple"
string name = (string)o["Name"];
JObject API documentation
I believe you are interested in the .Item[key] collection that returns JTokens.
Full Documentation