Json_scan.OpaqueA 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 as Ucs_text.t (the default) or as string.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.
Cf_type.UnitCf_type.BoolCf_type.Int or Cf_type.FloatUcs_type.TextCf_type.(Seq Opaque)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.