Version 1.0
-
#89: Add
JsonNameAttributeas a more powerful substitute for the standardJsonPropertyNameAttribute.- When used on a discriminated union case,
JsonNameAttributecan take a value of typeintorboolinstead ofstring. JsonNameAttributecan take multiple values. When deserializing, all these values are treated as equivalent. When serializing, the first one is used.JsonNameAttributehas a settable propertyField: string. It is used to set the JSON name of a union case field with the given name.
- When used on a discriminated union case,
-
#92: Serialization of record properties (in addition to fields).
- Add option
includeRecordProperties: boolto enable serializing record properties. - Also serialize record properties with
JsonIncludeAttributeeven whenincludeRecordPropertiesis false.
- Add option
-
Add support for the standard
DefaultIgnoreCondition.WhenWritingNullas a synonym forIgnoreNullValues = truethat allowsNoneandValueNoneto be omitted instead ofnull. -
#123: BREAKING CHANGE: Missing fields of type
optionorvoptionnow throw an error by default instead of being deserialized toNone/ValueNone. To support missing fields, either enable the optionIgnoreNullValues = trueorDefaultIgnoreCondition = WhenWritingNull, or use the typeSkippableinstead ofoptionorvoption. -
#126: Add option
types: JsonFSharpTypesthat specifies which types the F# converter should handle. Unlisted types will be handled by the defaultSystem.Text.Json. By default, all supported types are handled.