skip to Main Content

Trying to deserialize JSON returns null values

Using the method JsonConvert.DeserializeObject returns the default values for all properties. var current = JsonConvert.DeserializeObject<Current>(myJson); { "location": { "name": "London" }, "current": { "temp_c": 5.0, "cloud": 50 } } public class Current { public double Temp_c { get; set; }…

VIEW QUESTION
Back To Top
Search