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.2.tar.gz
sha512=e260412b2dd0f98cfe3dc7ed5c31a694eb31c93cd207c51fa12675b790234ee0ad3bf07d9be17a4dc266fedfe55b14c967cad7bc0c9414063eef8afd59f3d0d1
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)"
>