Error deserving JSON: The JSON value could not be converted to System.Collections.Generic.Ienumerable

Asked

Viewed 172 times

0

var stream = await response.Content.ReadAsStreamAsync();
var des = await JsonSerializer.DeserealizeAsync<IEnumerable<WorkingDaysDates>>(stream);
[JsonProperty(PropertyName = "RefDate3Before "]
public DateTime RefDate3Before { get; set;}

But when I test it, it returns the error: The JSON value could not be converted to System.Collections.Generic.Ienumerable

  • 1

    Include your JSON

  • 1

    Without seeing the JSON and the structure of WorkingDaysDates no way to guess the cause of the error... present a [MCVE]

  • @Juansantos Solved or gave up?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.