jet / FsCodec

F# Event-Union Contract Encoding with versioning tolerant converters supporting System.Text.Json and Newtonsoft.Json
https://github.com/jet/dotnet-templates
Apache License 2.0
83 stars 19 forks source link

Add Fleece serialization template/example? #16

Closed bartelink closed 5 years ago

bartelink commented 5 years ago

Stemming from https://github.com/jet/equinox/issues/57, the concern of demonstrating and/or providing a starting point for implementing serialization using something other than the first-among-equals (but some are more equal than others) convention-based-encoding system may best be represented by including a template and/or template option.

bartelink commented 5 years ago

In general, FsCodec.Codec.Create(encode,tryDecode) provides all you need. The general pattern of slotting in a FsCodec,X has been established if anyone ends up using a scheme other than FsCodec.NewtonsoftJson and the (not-yet-implemented) FsCodec.SystemTextJson.

bartelink commented 5 years ago

Closing - lots of analysis and discussion has concluded that the present interface afford the control needed to use FSharp.Data if desired and no further action is thus necessary