package decoders-yojson

  1. Overview
  2. Docs
include Decoders.Encode.S with type value = Yojson.Raw.json
type value = Yojson.Raw.json
type 'a encoder = 'a -> value
val string : string encoder
val int : int encoder
val float : float encoder
val bool : bool encoder
val null : value
val option : 'a encoder -> 'a option encoder
val list : 'a encoder -> 'a list encoder
val obj : (string * value) list encoder
val obj' : (value * value) list encoder
val value : value encoder
val encode_value : 'a encoder -> 'a -> value
val encode_string : 'a encoder -> 'a -> string

Yojson.Raw-specific encoders

val stringlit : string encoder
val intlit : string encoder
val floatlit : string encoder
OCaml

Innovation. Community. Security.