package of_json

  1. Overview
  2. Docs
type t
val to_string_hum : t -> string

to_string_hum returns the JSON context stack as a string that reads well if printed directly. That string cannot be used as a sexp atom: the backslash-escaping would render it illegible.

val extract_exn : t -> exn

extract_exn returns the exception that caused the failure

OCaml

Innovation. Community. Security.