System.Text.Json is the library which is written by .Net team to enable applications to perform serialization and deserialization of Json in .Net applications. This library is more performant than popular Newtonsoft.Json library. However, in my efforts to migrate from Newtonsoft.Json to System.Text.Json I found a few places where the library has significant gaps in functionality from Newtonsoft.Json. This repo intends to cover a few of those. Hopefully, over time this repo would not be needed and System.Text.Json will achieve near-parity with Newtonsoft.Json.
Current this repo has following extensions
- Converters
- Allow booleans as string
- Allow polymorphic serialization of properties (SystemTextJson already supports for top level objects, see)
- Enable specifying converter to use for each item in collection
- Camel case serialization
- Encoder
- Newtonsoft.Json compatible encoder supporting following beyond the provided Relaxed encoder
- Support for Emojis to not be escaped
- Newtonsoft.Json compatible encoder supporting following beyond the provided Relaxed encoder