shcribe/json_pretty

Types

pub type JsonValue {
  JString(String)
  JNumber(Float)
  JBool(Bool)
  JNull
  JArray(List(JsonValue))
  JObject(dict.Dict(String, JsonValue))
}

Constructors

Values

pub fn from_dynamic(
  d: dynamic.Dynamic,
) -> Result(JsonValue, String)
pub fn parse_and_print(
  json_string: String,
) -> Result(String, String)
pub fn pretty_print(value: JsonValue) -> String
pub fn pretty_print_tree(
  value: JsonValue,
  indent: Int,
) -> string_tree.StringTree
Search Document