Created
September 9, 2019 08:07
-
-
Save carlrip/67db450e42b284d53645485341b2c5dd to your computer and use it in GitHub Desktop.
Deserializing JSON in ASP.NET Core 3.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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