package atdgen-runtime
Module type Json_adapter.SSource
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.
val normalize : Yojson.Safe.t -> Yojson.Safe.tConvert a real json tree into an atd-compliant form.
val restore : Yojson.Safe.t -> Yojson.Safe.tConvert an atd-compliant json tree into a real json tree.