07:31Customizing property names & values when reading .NET objects as JSON
From the creator
By default, property names and dictionary keys are unchanged in the JSON output, including case. Enum values are represented as numbers. And properties are serialized in the order they're defined. However, you can customize these behaviors by customizing property names and dictionary keys in the JSON output, including case and the order they're defined. James and Matt break it all down. Chapters: 00:00 - Introduction JSON properties 01:30 - Customizing property names 04:00 - Property naming policies and casing 09:45 - Custom naming policies 11:45 - Sorting JSON properties 14:40 - Wrap-up Resources: Docs: https://learn.microsoft.com/dotnet/standard/serialization/system-text-json/customize-properties 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
Published 2024-01-10 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





