Idris2Doc : JSON.Parser

JSON.Parser

(source)

Reexports

importpublic Text.ILex

Definitions

jdouble : String->Double
  We cannot use `cast` to convert all valid JSON numbers
to `Double`. Fortunately, both the JavaScript and Scheme
backends are more tolerant, so we can use a simple FFI call.
escape : SnocListChar->Char->SnocListChar
Totality: total
Visibility: public export
encode : String->String
Totality: total
Visibility: public export
dataJSON : Type
Totality: total
Visibility: public export
Constructors:
JNull : JSON
JInteger : Integer->JSON
JDouble : Double->JSON
JBool : Bool->JSON
JString : String->JSON
JArray : ListJSON->JSON
JObject : List (String, JSON) ->JSON

Hints:
EqJSON
ShowJSON
dropNull : JSON->JSON
  Recursively drops `Null` entries from JSON objects.

Totality: total
Visibility: export
0SK : Type->Type
Totality: total
Visibility: public export
jsonDouble : RExpTrue
Totality: total
Visibility: export
json : P1q (BoundedErrVoid) JSON
Totality: total
Visibility: public export
parseJSON : Origin->String->Either (ParseErrorVoid) JSON
Totality: total
Visibility: export
jsonArray : P1q (BoundedErrVoid) (ListJSON)
  A parser that is capable of streaming a single large
array of JSON values.

Totality: total
Visibility: public export
jsonValues : P1q (BoundedErrVoid) (ListJSON)
  Parser that is capable of streaming large amounts of
JSON values.

Values need not be separated by whitespace but the longest
possible value will always be consumed.

Totality: total
Visibility: public export