juno

Types

pub type Value(a) {
  Null
  Int(Int)
  Custom(a)
  Bool(Bool)
  Float(Float)
  String(String)
  Array(List(Value(a)))
  Object(dict.Dict(String, Value(a)))
}

Constructors

  • Null
  • Int(Int)
  • Custom(a)
  • Bool(Bool)
  • Float(Float)
  • String(String)
  • Array(List(Value(a)))
  • Object(dict.Dict(String, Value(a)))

Functions

pub fn decode(
  json: String,
  custom_decoders: List(
    fn(Dynamic) -> Result(a, List(DecodeError)),
  ),
) -> Result(Value(a), gleam/json.DecodeError)
pub fn decode_object(
  json: String,
  custom_decoders: List(
    fn(Dynamic) -> Result(a, List(DecodeError)),
  ),
) -> Result(Value(a), gleam/json.DecodeError)
Search Document