package ez_api

  1. Overview
  2. Docs
exception DestructError
type destruct_error = [
  1. | `destruct_exn of exn
]
val destruct : 'a Json_encoding.encoding -> string -> 'a
val destruct_res : 'a Json_encoding.encoding -> string -> ('a, [> destruct_error ]) result
val construct : ?compact:bool -> 'a Json_encoding.encoding -> 'a -> string
module Ezjsonm : sig ... end
val encoded_string : string Json_encoding.encoding
val tup1_int : int Json_encoding.encoding
val tup1_int64 : int64 Json_encoding.encoding
val tup1_string : string Json_encoding.encoding
val register : ?name:string -> ?descr:string -> 'a Json_encoding.encoding -> unit
val merge_objs : ?name:string -> ?descr:string -> 'a Json_encoding.encoding -> 'b Json_encoding.encoding -> ('a * 'b) Json_encoding.encoding
val enc_constant : 'a Json_encoding.encoding -> 'a -> unit Json_encoding.encoding
OCaml

Innovation. Community. Security.