package gendarme-yojson

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.6.tar.gz
md5=12e90edf778c6df13b8f348f46c0962f
sha512=13d0cefca40dd412a3b62263d7fdc275736e427ab54e344f2d144490986210079f4e29c2b89124a563f11e01a43776ed539d31752b5be82d05bed7b756f411cf

doc/gendarme-yojson/Gendarme_json/index.html

Module Gendarme_jsonSource

include module type of struct include Gendarme_yojson end
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

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

Marshal a value in an way safe for the encoder

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

Unmarshal a value in a way safe for the encoder

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