package gendarme-json

  1. Overview
  2. Docs
Libraries to marshal OCaml data structures (JSON)

Install

Dune Dependency

Authors

Maintainers

Sources

0.3.tar.gz
md5=d5c48669b7c3217fff80f8017ff7632e
sha512=d756cdc0307a4769ac9f22749f65c92674087b4f1e49fe9e9c82894f52e1bb3216c468dccd0f3127edcc823c25912de35a664acd659c35c57d046ef6f4901b67

doc/gendarme-json/Gendarme_json/index.html

Module Gendarme_jsonSource

This module provides a JSON encoder for the Gendarme library

include Gendarme.S with type t = Yojson.Safe.t
include Gendarme.M with type t = Yojson.Safe.t

The internal encoder type

Sourceval unpack : Gendarme.target -> t

Unpack an internal value

Sourceval pack : t -> Gendarme.target

Pack an internal value

Sourceval marshal : ?v:'a -> 'a Gendarme.ty -> t

Marshal a value

Sourceval unmarshal : ?v:t -> 'a Gendarme.ty -> 'a

Unmarshal a value

The encoder type representation

Sourceval encode : ?v:'a -> 'a Gendarme.ty -> string

Encode a value into a string representation

Sourceval decode : ?v:string -> 'a Gendarme.ty -> 'a

Decode a value from its string representation

Sourcemodule Prelude : sig ... end
OCaml

Innovation. Community. Security.