Skip to content

Instantly share code, notes, and snippets.

@carlrip
Created September 9, 2019 08:07
Show Gist options
  • Save carlrip/67db450e42b284d53645485341b2c5dd to your computer and use it in GitHub Desktop.
Save carlrip/67db450e42b284d53645485341b2c5dd to your computer and use it in GitHub Desktop.
Deserializing JSON in ASP.NET Core 3.0
var jsonContent = await response.Content.ReadAsStringAsync();
var user = JsonSerializer.Deserialize<User>(jsonContent, new JsonSerializerOptions
{
PropertyNameCaseInsensitive = true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment