Version 1.1
-
#141: Add fluent options builder.
JsonFSharpOptionshas the following new methods:- static methods that create options with default settings:
.Default(),.NewtonsoftLike(),.FSharpLuLike()and.ThothLike(). - instance methods
.WithOptionAbc(?bool)for each flagJsonUnionEncoding.Abc, that sets or unsets this option and returns a newJsonFSharpOptions. - instance methods
.WithAbc(value)for each optional argumentabcof its constructor, that sets this option and returns a newJsonFSharpOptions. - an instance method
.ToJsonSerializerOptions()that returns a newJsonSerializerOptionswith the correspondingJsonFSharpConverterconfigured. - an instance method
.AddToJsonSerializerOptions(options)that takes an existingJsonSerializerOptions, configures the correspondingJsonFSharpConverterand returnsunit.
The above is now the recommended way of configuring the library, and future options may be only made available using fluent methods and not using constructor arguments.
- static methods that create options with default settings:
-
#146: Add option
.WithSkippableOptionFields(?bool)that makes fields of typeoptionandvoptionbehave likeSkippable:None/ValueNoneis represented by a missing field instead of anullvalue.This is equivalent to the pre-1.0 default behavior, and is now recommended if this behavior is desired instead of
IgnoreNullValues = trueorDefaultIgnoreCondition = WhenWritingNull.