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 append : string -> t -> unit
val flush : out_channel -> unit
val to_string : ?minify:bool -> t -> string
val of_string : ?encoding:Jsonm.encoding -> string -> t option
OCaml

Innovation. Community. Security.