package opam-core

  1. Overview
  2. Docs

Json encoder; only needed for some debug options

Warning. Assumes given strings are UTF-8 encoded this is not checked by the module.

type t = [
  1. | `Null
  2. | `Bool of bool
  3. | `Float of float
  4. | `String of string
  5. | `A of t list
  6. | `O of (string * t) list
]
type 'a encoder = 'a -> t
type 'a decoder = t -> 'a option
val to_string : t -> string
val append : string -> t -> unit
val flush : Stdlib.out_channel -> unit
OCaml

Innovation. Community. Security.