Module Reader_monad.Make
Parameters
Signature
module IO : Jsonxt__.Io.IOtype json= Parser.Compliance.json
val read_json : ?stream:bool -> reader:(Stdlib.Bytes.t -> int -> int IO.t) -> unit -> (json, string) Stdlib.result IO.tread_jsontakes areaderfunction and returns ajsonvalue or an error if the string has syntax, grammar or compliance errors. Thereader buf lenparameter reads at mostlenbytes intobufand returns the number of bytes read. Zero indicates end of file. The optionalstreamparameter specifies if multiplejsonobjects are to be read, defaulting tofalse