package b0
Software construction care
Install
Dune Dependency
Authors
Maintainers
Sources
b0-0.0.0.tbz
sha256=dadde8cfa62be9dabd805fc190b415427b4699ffe3458c153e2f3f9cc5c9b9b4
md5=f96ac96fb0182f2b97dbe9ded452544b
doc/b0.care/B0_web/Jsong/index.html
Module B0_web.Jsong
JSON value generation.
Generation
val null : t
null
is the generated JSON null value.
val bool : bool -> t
bool b
is b
as a generated JSON boolean value.
val int : int -> t
int i
is i
as a generated JSON number.
val float : float -> t
float f
is f
as a generated JSON number.
val string : string -> t
str s
is s
as a generated JSON string value.
val arr : arr
arr
is an empty array.
el cond v arr
is el (v ()) arr
if cond
is true
and arr
otherwise.
val obj : obj
obj
is an empty object.
mem_if cond name v o
is mem name (v ()) o
if cond
is true
and o
otherwise.
Derived generators
val path : B0_std.Fpath.t -> t
path p
is p
as a generated JSON string value.
val cmd : B0_std.Cmd.t -> t
cmd c
is c
as a generated JSON string array value.
list el l
is l
as a generated JSON array whose elements are generated using el
.
val strf : ('a, Format.formatter, unit, t) format4 -> 'a
strf fmt ...
is a JSON string generated value formatted according to fmt
.
Output
val to_string : t -> string
to_string g
is the generated JSON value g
as a string.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page