Module OpamJson

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 = [
| `Null
| `Bool of bool
| `Float of float
| `String of string
| `A of t list
| `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 : Pervasives.out_channel ‑> unit