package octez-proto-libs
Octez protocol libraries
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-proto-libs.protocol-environment/Tezos_protocol_environment/V10/Make/Data_encoding/Json/index.html
Module Data_encoding.Json
val schema : ?definitions_path:string -> 'a encoding -> json_schema
Construct a JSON object from an encoding.
Destruct a JSON object into a value. Fail with an exception if the JSON object and encoding do not match.
JSON Error
type path = path_item list
and path_item = [
| `Field of string
(*A field in an object.
*)| `Index of int
(*An index in an array.
*)| `Star
(*Any / every field or index.
*)| `Next
(*The next element after an array.
*)
]
A set of accessors that point to a location in a JSON object.
exception Cannot_destruct of path * exn
Exception raised by destructors, with the location in the original JSON structure and the specific error.
val print_error :
?print_unknown:(Format.formatter -> exn -> unit) ->
Format.formatter ->
exn ->
unit
val cannot_destruct : ('a, Format.formatter, unit, 'b) Pervasives.format4 -> 'a
Helpers for writing encoders.
val pp : Format.formatter -> json -> unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>