package jsonaf

  1. Overview
  2. Docs
val t : t Angstrom.t

For parsing a JSON stream, e.g., when using Angstrom_async.parse_many, you should instead use t_without_trailing_whitespace.

val t_without_trailing_whitespace : t Angstrom.t

t_without_trailing_whitespace will parse a single JSON value without consuming any trailing whitespace. This is useful in the context of streaming multiple JSON values because it will immediately return t when it is parsed, but it may fail in other parsing contexts where the input buffer is expected to be fully consumed.

val run : Base.string -> (t, Base.string) Base.Result.t
val run_many : Base.string -> (t Base.list, Base.string) Base.Result.t
OCaml

Innovation. Community. Security.