maca / crdt-replicated-tree / CRDTree.Json

Replicated Tree JSON serialization

operationEncoder : (a -> Json.Encode.Value) -> CRDTree.Operation.Operation a -> Json.Encode.Value

Encoder for an operation, expects a function that takes anything and returns a value

operationDecoder : Json.Decode.Decoder a -> Json.Decode.Decoder (CRDTree.Operation.Operation a)

Decoder for an operation