Std.Json
21 public declarations
- asBool
&Std.Json.Json -> Option[Bool]The truth value a value holds, or `None`.
- asInt
&Std.Json.Json -> Option[Int]The whole number a value holds, or `None`.
- asList
&Std.Json.Json -> Option[Array[Std.Json.Json]]The members a list holds, or `None`.
- asObject
&Std.Json.Json -> Option[Array[(Str, Std.Json.Json)]]The entries an object holds, or `None`.
- asText
&Std.Json.Json -> Option[Str]The text a value holds, or `None` when it holds something else.
- at
&Std.Json.Json -> Int -> Option[Std.Json.Json]The value at a position in a list, or `None`.
- decode
Str -> Result[Std.Json.Json, Std.Json.JsonError]A value read from text, or what stopped the reader.
- encode
&Std.Json.Json -> StrA value written as compact text, with no spaces between its parts.
- encodePretty
&Std.Json.Json -> StrA value written across lines, each level indented by two spaces.
- explain
&Std.Json.JsonError -> StrA reader's failure explained in the terms a caller can report.
- field
&Std.Json.Json -> Str -> Option[Std.Json.Json]The value stored under a key, or `None` when the value is not an object or
- foldLines
Str -> T -> fn(T, Std.Json.Json) -> T -> Result[T, Std.Json.JsonLinesError]Combine every value of a JSON Lines file, one value to a line, holding one
- isNull
&Std.Json.Json -> BoolWhether a value is null.
- Json
A JSON value.
- JsonError
What went wrong while reading JSON.
- JsonLinesError
Why the values of a JSON Lines file could not all be read.
- keys
&Std.Json.Json -> Array[Str]Every key an object has, in the order they were written.
- list
&Array[Std.Json.Json] -> Std.Json.JsonA list built from values.
- object
&Array[(Str, Std.Json.Json)] -> Std.Json.JsonAn object built from key and value pairs.
- path
&Std.Json.Json -> &Array[Str] -> Option[Std.Json.Json]The value reached by following a path of object keys.
- withField
&Std.Json.Json -> Str -> Std.Json.Json -> Std.Json.JsonAn object with one key added or replaced.
