Packages

A fast, spec compliant, generic JSON parser and encoder in Gleam

Current section

Files

Jump to
gj src generic_json.gleam
Raw

src/generic_json.gleam

/// Type for representing JSON generically
///
/// This is the type that `gj.decode` produces and `gj.encode` takes
pub type JSON {
Object(List(tuple(String, JSON)))
Array(List(JSON))
Number(Float)
Boolean(Bool)
String(String)
Null
}