← all modules

Sky.Core.Json.Encode

Sky.Core.Json.Encode
  Sky.Core.Json.Encode — JSON encoders (Layer 3 Sky source).

Values
  bool : Bool -> Value
      Encode a boolean as JSON `true` / `false`.
  encode : Int -> Value -> String
      `encode indent value` — serialise to a JSON string.  `indent`
  float : Float -> Value
      Encode a float as a JSON number value.
  int : Int -> Value
      Encode an integer as a JSON number value.
  list : (a -> Value) -> List a -> Value
      Encode a list of values as a JSON array.  Elm-style:
  null : Value
      JSON `null`.
  object : List ( String, Value ) -> Value
      Encode a `[(key, value)]` list as a JSON object.
  string : String -> Value
      Encode a string as a JSON string value.