ishanpranav / json-converters

A collection of custom converters for System.Text.Json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A collection of JsonConverter classes

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.

Converters

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 }

Adapters

Adapter Description
TypeConverterJsonConverterAdapter Adds support for the TypeConverterAttribute. Source: dotnet/runtime #1761.

License

This repository is licensed with the MIT license.

About

A collection of custom converters for System.Text.Json

License:MIT License


Languages

Language:C# 100.0%