Standard library referenceModules
std/json
JSON values and RFC 8259 text encoding. Offsets are UTF-8 byte offsets.
Json
Json = Null | Boolean | Integer | Number | Text | Array | Object JsonError
JsonError = (offset = Int, reason = String) parse
parse = (text : String) -> Result(Json, JsonError) { print = (json : Json) -> String { render(json, "", 0, False) } pretty
pretty = (json : Json, indent : Int) -> String { field
field = (json : Json, key : String) -> Option(Json) { index
index = (json : Json, at : Int) -> Option(Json) { as_bool
as_bool = (json : Json) -> Option(Bool) { as_int
as_int = (json : Json) -> Option(Int) { as_float
as_float = (json : Json) -> Option(Float) { as_string
as_string = (json : Json) -> Option(String) { as_array
as_array = (json : Json) -> Option(List(Json)) { as_object
as_object = (json : Json) -> Option(List((String, Json))) {