I know there are a few posts about Newtonsoft so hopefully this isn\'t exactly a repeat...I\'m trying to convert JSON data returned by Kazaa\'s API into a nice object of som
Deserializing using JsonConvert.DeserializeObject() function
public class ApiValues
{
[JsonProperty("Address")]
public string Address { get; set; }
[JsonProperty("BaseUrl")]
public string BaseUrl{ get; set; }
}
var json =
{
"Address":"some-address",
"BaseUrl":"some-url-value"
}
var values = JsonConvert.DeserializeObject(json);