package equinoxe

  1. Overview
  2. Docs

Module Json.InfixSource

Infix operator for Json.t.

Sourceval (-->) : t -> string -> t

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

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

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

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

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

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

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

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

json |+> value executes adda.

Sourceval (~+) : string -> t

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

Sourceval (~$) : float -> t

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

OCaml

Innovation. Community. Security.