Skip to content

Newtonsoft.Json Converters for Types from Funcky

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

polyadic/funcky-newtonsoftjson

Repository files navigation

Funcky.NewtonsoftJson

Build Licence: MIT Licence: Apache

Usage

using Funcky.Monads;
using Funcky.NewtonsoftJson;
using Newtonsoft.Json;

var settings = new JsonSerializerSettings().AddOptionConverter();
var json = JsonConvert.SerializeObject(Option.Some("hello world"), settings);

Using the Converters

The converter implementations are not exposed directly. You can use the extension methods provided for JsonSerializerSettings to add the converters instead.

Extension Method Description
AddFunckyConverters Adds converters for all supported Funcky types (currently only Option).
AddOptionConverter Adds the converter for Option<T>.

About

Newtonsoft.Json Converters for Types from Funcky

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Languages