I am trying to deserialize below json with the first value equal to null, into simple array with doubles. However I am getting error The best overloaded method match for 'Newtonsoft.Json.JsonConvert.DeserializeObject<double[]>(string, params Newtonsoft.Json.JsonConverter[])' has some invalid arguments
{[
null,
0.1,
0.2,
0.3
]}
The code is
var values = JsonConvert.DeserializeObject<double[]>(valJson, new JsonSerializerSettings
{
NullValueHandling = NullValueHandling.Ignore,
MissingMemberHandling = MissingMemberHandling.Ignore
});
I have tried multiple configurations i.e. NullValueHandling.Include without any success. What's wrong with the code?