Module B0_web.Jsonq
JSON value queries.
Queries
val null : unit tnullqueries a null JSON value.
val bool : bool tboolqueries a boolean JSON value.
val int : int tintqueries a float JSON value andtruncates it.
val float : float tfloatqueries a float JSON value.
val string : string tstringqueries a string JSON value.
val mem : string -> 'a t -> ('a -> 'b) t -> 'b tmem name q oqueries a JSON objecto's member namednamewithq.
val mem_opt : string -> 'a t -> ('a option -> 'b) t -> 'b tmem_opt name qqueries a JSON objecto's optional member namednamewithq.
val obj : 'a -> 'a tobj vqueries an object and returnsv.
val query : 'a t -> Json.t -> ('a, string) Stdlib.resultquery q jqueries a JSON valuejwithq.