rocksky/json_value

A typed representation of JSON for schema-defined unknown/open values.

Types

pub type JsonValue {
  Null
  Boolean(Bool)
  Integer(Int)
  Float(Float)
  String(String)
  Array(List(JsonValue))
  Object(List(#(String, JsonValue)))
}

Constructors

  • Null
  • Boolean(Bool)
  • Integer(Int)
  • Float(Float)
  • String(String)
  • Array(List(JsonValue))
  • Object(List(#(String, JsonValue)))

Values

pub fn encode(value: JsonValue) -> json.Json
pub fn encode_bytes(value: BitArray) -> json.Json
✨ Search Document