package equinoxe

  1. Overview
  2. Docs

Infix operator for Json.t.

val (-->) : t -> string -> t

json --> field is an infix operator that executes geto.

val (|->) : t -> int -> t

json |-> nth is an infix operator that executes geta.

val (|->?) : t -> (string * string) -> t

json |->? (k,v) is an infix operator that executes geto_from_a.

val (-+>) : t -> (string * t) -> t

json -+> (key, value) executes addo.

val (|+>) : t -> t -> t

json |+> value executes adda.

val (~+) : string -> t

~+ str is an infix operator that wraps create ~kind:(`Str str) ().

val (~$) : float -> t

~$ num is an infix operator that wraps create ~kind:(`Float f) ().

OCaml

Innovation. Community. Security.