dotnet

Handling Missing Members when Reading .NET Objects


Listen Later

By default, if the JSON payload you're deserializing contains properties that don't exist in the deserialized plain old CLR object (POCO) type, they're simply ignored. Starting in .NET 8, you can specify that all members must be present in the payload. James and Matt show you how!
Docs: https://learn.microsoft.com/dotnet/standard/serialization/system-text-json/missing-members
00:00 - Intro
00:55 - Default Implementation Demo
01:40 - Requiring Unmapped Members
03:20 - Wrap-up
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 #json #systemtextjson
...more
View all episodesView all episodes
Download on the App Store

dotnetBy dotnet