package reddit_api_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include S_with_fields with type t = Json.t Core_kernel.String.Map.t
include Json_object_intf.S with type t = Json.t Core_kernel.String.Map.t
type t = Json.t Core_kernel.String.Map.t
val of_json : Json.t -> t
val to_json : t -> Json.t
val get_field : t -> string -> Json.t option
val get_field_exn : t -> string -> Json.t
val field_map : t -> Json.t Core_kernel.String.Map.t
include Core_kernel.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val optional_field : string -> (Json.t -> 'a) -> t -> 'a option
val required_field : string -> (Json.t -> 'a) -> t -> 'a
val (>>) : ('a -> 'b) -> ('b -> 'c) -> 'a -> 'c
val or_null : (Json.t -> 'a) -> Json.t -> 'a option
val int : Json.value -> int
val float : Json.value -> float
val bool : Json.value -> bool
val string : Json.value -> string
val username : Json.value -> Username.t
val subreddit_name : Json.value -> Subreddit_name.t
val time : Json.value -> Core_kernel.Time_ns.t
val uri : Json.value -> Uri.t
OCaml

Innovation. Community. Security.