krisajenkins/elm-exts/28.0.0

Exts.Json.Encode

Extensions to the core Json.Encode library.

tuple2 : (a -> Value) -> (b -> Value) -> ( a, b ) -> Value

Encode a pair to a JSON array .

maybe : (a -> Value) -> Maybe a -> Value

Encode a Maybe value, encoding Nothing as null.