How to deserialize decimal property with precision
So, Setting FloatParseHandling
to Decimal
in JsonSerializerSettings
solved my problem:
var dictionary = JsonConvert.DeserializeObject<Dictionary<string, object>>(json, new JsonSerializerSettings() { FloatParseHandling = FloatParseHandling.Decimal }); var decimalValue = dictionary["Dec"];