decoders-sexplibversion
Sexplib interface for decoders
A combinator library for "decoding" JSON-like values into your own Ocaml types, inspired by Elm's Json.Decode
and Json.Encode
.
Eh?
An Ocaml program having a JSON (or YAML) data source usually goes something like this:
- Get your data from somewhere. Now you have a
string
. - Parse the
string
as JSON (or YAML). Now you have aYojson.Basic.json
, or maybe anEzjsonm.value
, or perhaps aOcyaml.yaml
. - Decode the JSON value to an Ocaml type that's actually useful for your program's domain.
This library helps with step 3.
Author | Matt Bray <mattjbray@gmail.com> |
---|---|
License | ISC |
Published | |
Homepage | https://github.com/mattjbray/ocaml-decoders |
Issue Tracker | https://github.com/mattjbray/ocaml-decoders/issues |
Maintainer | Matt Bray <mattjbray@gmail.com> |
Dependencies | |
Source [http] | https://github.com/mattjbray/ocaml-decoders/releases/download/v0.3.0/decoders-v0.3.0.tbz sha256=a50e613cfd18a584e765d8368ad0afe920482bf1e6745caf13f2b6a7d3634d9d sha512=2f596f444ec815759234b50a53e3a67e7413f871d5fce1ae950e145dd5e81c4507acf784334ca86c935344b59ea619baa96ac07a0207cfb70681986dd81e2079 |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/decoders-sexplib/decoders-sexplib.0.3.0/opam |
No package is dependent