package melange-json

  1. Overview
  2. Docs
Compositional JSON encode/decode library and PPX for Melange, with native compatibility

Install

Dune Dependency

Authors

Maintainers

Sources

melange-json-1.2.0.tbz
sha256=080f34a2d6ce9c75ead1ba28264a102fe5326d09cb5347774d917bc52613b5f7
sha512=9308b09562eba762e3f61f82fcdaa49ca726868e3f411c2b944d35f1d9476584a7f3e0b60d7b1a5d2a53c66a39468a663ae410d93151c02d944dcea27eb12054

doc/melange-json.ppx-runtime-native/Ppx_deriving_json_runtime/To_json/index.html

Module Ppx_deriving_json_runtime.To_jsonSource

Sourceval string_to_json : 'a -> [> `String of 'a ]
Sourceval bool_to_json : 'a -> [> `Bool of 'a ]
Sourceval int_to_json : 'a -> [> `Int of 'a ]
Sourceval float_to_json : 'a -> [> `Float of 'a ]
Sourceval unit_to_json : unit -> [> `Null ]
Sourceval list_to_json : ('a -> 'b) -> 'a list -> [> `List of 'b list ]
Sourceval option_to_json : ('a -> [> `Null ] as 'b) -> 'a option -> 'b
OCaml

Innovation. Community. Security.