I need to deserialize the following:
{"result":{"success":true,"value":"8cb2237d0679ca88db6464eac60da96345513964"}}
to a C# object using Newtonsoft.Json
WebClient wc = new WebClient();
var json = wc.DownloadString(url);
Worker w = JsonConvert.DeserializeObject<Worker>(json);
Here is the class code:
public class Worker
{
[JsonProperty("success")]
public string success { get; set; }
[JsonProperty("value")]
public string value { get; set; }
}
The code does not error out, but the success and value are null.