krisajenkins/elm-exts/27.4.0

NOTE: this package is not compatible with Elm 0.19.1

Exts.Json.Encode

Extensions to the core Json.Encode library.

set : (comparable -> Value) -> Set comparable -> Value

Encode a Set to a JSON array .

dict : (comparable -> Value) -> (v -> Value) -> Dict comparable v -> Value

Encode a Dict to a JSON array .

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.