package atdgen-runtime

  1. Overview
  2. Docs

Module Atdgen_runtime.Json_adapterSource

Json adapters and tools for the user to make their own json adapters for common situations.

Json adapters are used to rewrite json node into a form compatible with atdgen's conventions.

Sourcemodule type S = sig ... end

Module signature required of any json adapter. For example, an ATD annotation <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field" refers to the OCaml module Atdgen_runtime.Json_adapter.Type_field.

Sourcemodule Type_field : sig ... end

Support for json objects that contain a field that indicates the type of that object. The following

Support for objects with a single field whose name indicates the type of the value. For instance,

Sourcemodule Type_and_value_fields : sig ... end

Support for the retired tag_field feature. This converts the following