jos.enumeration JOS.Enumeration - System.Text.Json support Custom JsonConverter that only writes the integer value of our Enumeration class. It also supports deserialization by only supplying the Enumeration value.
dotnet Custom Dictionary JsonConverter using System.Text.Json How to customize the deserialization/serialization of Dictionary<string, object> using System.Text.Json and a custom JsonConverter