Sign in to confirm you’re not a bot
This helps protect our community. Learn more
Handling Missing Members when Reading .NET Objects
235Likes
4,970Views
2024Jan 8
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/st... 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

Follow along using the transcript.

dotnet

325K subscribers