package opam-core

  1. Overview
  2. Docs

Module OpamJsonSource

Json encoder; only needed for some debug options

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

Sourcetype 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
]
Sourcetype 'a encoder = 'a -> t
Sourcetype 'a decoder = t -> 'a option
Sourceval to_string : t -> string
Sourceval append : string -> t -> unit
Sourceval flush : out_channel -> unit
OCaml

Innovation. Community. Security.