NOTE: the latest version is 4.3.0
Convenience functions for turning Elm values into Json values.
Encode a Maybe value. If the value is Nothing it will be encoded as null
Nothing
null
import Json.Encode exposing (..) maybe int (Just 50) --> int 50 maybe int Nothing --> null
Encode a Maybe value. If the value is
Nothingit will be encoded asnull