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.tar.gz
sha256=6e6f59fc6a2c590b1b377e40f2120a548e6f09e61e7eb12ffa45cf2d517316b8
md5=533153cd4a9fe8093d3b98afc1073bc8
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)"
>