jackson
Functions
pub fn decode(
json: Json,
decoder: fn(Dynamic) -> Result(a, List(DecodeError)),
) -> Result(a, List(DecodeError))
take a parsed json value from jackson.parse
and decode it from a dynamic
pub fn object(entries: List(#(String, Json))) -> Json
build a json object from a list of keys and values, similar to dict.from_list
pub fn resolve_pointer(
json: Json,
pointer: String,
) -> Result(Json, Nil)
resolve a json pointer, starting with a “/” or a “#/” note json pointers starting with a “#/” will be resolved with reference to the current json value, and not a remote resource
pub fn to_string(json: Json) -> String
encode json to string (uses jackson.to_string_builder
under the hood)
pub fn to_string_builder(json: Json) -> StringBuilder
encode json to a string builder