Skip to content

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

Stars

Watchers

Forks

Releases

Contributors

Languages