package orsetto
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A library of assorted structured data interchange languages
Install
dune-project
Dependency
Authors
Maintainers
Sources
r1.1.1.tar.gz
sha256=81283687ce3204263bc955a332dd7b90bf5b648a990c01160f33aaa77d80962f
md5=7346293aa013c2a8974c6fb7c521166a
doc/orsetto.json/Json_scan/Opaque/index.html
Module Json_scan.Opaque
A submodule containing logic for parsing JSON texts to values of type Cf_type.opaque according to optional mode selectors.
val mode : ?strings:[< `Text | `String ] -> unit -> modeUse mode () to create a mode selector record for the opaque value scanner. Use any of the various optional parameters to set a mode selector to other than its default value. The modes are as follows:
strings: Controls how JSON strings are decoded, either asUcs_text.t(the default) or asstring.
val value : ?mode:mode -> unit -> Cf_type.opaque Annot.form tUse value () to create an opaque value parser. The following table describes the runtime type indications produced for values decoded.
- null:
Cf_type.Unit - boolean:
Cf_type.Bool - number:
Cf_type.IntorCf_type.Float - string:
Ucs_type.Text - array:
Cf_type.(Seq Opaque) - object:
Cf_type.(Seq (Pair (Opaque, Opaque))
Use the ~mode parameter to select modes other than the default.
Note well: the array and object containers are sequences of untyped values, which must be unpacked recursively. Exceeding a maximum recursion depth of 1000 raises Bad_syntax.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>