krisajenkins / elm-exts / Exts.Json.Encode

Extensions to the core Json.Encode library.

tuple2 : (a -> Json.Encode.Value) -> (b -> Json.Encode.Value) -> ( a, b ) -> Json.Encode.Value

Encode a pair to a JSON array .

maybe : (a -> Json.Encode.Value) -> Maybe a -> Json.Encode.Value

Encode a Maybe value, encoding Nothing as null.