Although the new System.Text.Json
APIs have robust serialization support for custom classes, they do not natively support many built-in .NET types. This repository's standalone JsonConverter<T>
implementations add support for some of the missing types.
Namespace | Type | Kind | Converter | Example |
---|---|---|---|---|
System.Drawing |
Image |
Class | JsonImageConverter |
|
System.Globalization |
CultureInfo |
Class | JsonCultureInfoConverter |
"en-US" |
System.Net |
IPAddress |
Class | JsonIPAddressConverter |
"127.0.0.1" |
System.Numerics |
Complex |
Struct | JsonComplexConverter |
{ "Real": -0.7269, "Imaginary": 0.1889 } |
Adapter | Description |
---|---|
TypeConverterJsonConverterAdapter |
Adds support for the TypeConverterAttribute . Source: dotnet/runtime #1761. |
This repository is licensed with the MIT license.