dotnet

Enabling case-insensitive when reading objects with System.Text.Json


Listen Later

In this video, James and Matt show you how to enable case-insensitive property name matching with the System.Text.Json namespace.
Chapters:
00:00 - Intro to Case Sensitive JSON
01:35 - Default behavior for casing in System.Text.Json
03:10 - Required for exceptions
03:25 - Adding JsonPropertName to handle casing
04:00 - JsonSerializationOptions for Case-insensitivity property names
05:50 - Wrap-up
Resources:
Docs: https://learn.microsoft.com/dotnet/standard/serialization/system-text-json/character-casing
Connect with .NET:
Blog: https://aka.ms/dotnet/blog
Twitter: https://aka.ms/dotnet/twitter
TikTok: https://aka.ms/dotnet/tiktok
Mastodon: https://aka.ms/dotnet/mastodon
LinkedIn: https://aka.ms/dotnet/linkedin
Facebook: https://aka.ms/dotnet/facebook
Docs: https://learn.microsoft.com/dotnet
Forums: https://aka.ms/dotnet/forums
🙋‍♀️Q&A: https://aka.ms/dotnet-qa
👨‍🎓Microsoft Learn: https://aka.ms/learndotnet
#dotnet
...more
View all episodesView all episodes
Download on the App Store

dotnetBy dotnet