Pro EP 97 : JSON Naming Policy Updates .NET 8

Muhammad Waseem
Become .NET Pro !
Dec 25, 2023

JsonNamingPolicy includes new naming policies for snake_case (with an underscore) and kebab-case (with a hyphen) property name conversions.

Previously we had only one naming policies in Json Options for System.Text.Json :

1) Camel Case

With new changes of .NET 8 we have four more in the list now :

  1. kebab-case-lower
  2. KEBAB-CASE-UPPER
  3. snake_case_lower
  4. SNAKE_CASE_UPPER

Whenever you’re ready, there are 4 ways I can help you

  1. Subscribe to my Weekly .NET Newsletter of C#/.NET with 8000+ Software Engineers.
  2. Promote yourself to 8000+ subscribers by Sponsoring my Newsletter
  3. Download my eBook at Gum Road which contains 30+ .NET Tips (With 2800+ Downloads)
  4. To get 100+ free and paid resources for learning C# and .NET visit this GitHub Repository

--

--