decoders-yojsonversion
Interface to yojson 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 <matt@aestheticintegration.com> |
---|---|
License | ISC |
Published | |
Homepage | https://github.com/mattjbray/ocaml-decoders |
Issue Tracker | https://github.com/mattjbray/ocaml-decoders/issues |
Maintainer | Matt Bray <matt@aestheticintegration.com> |
Dependencies | |
Source [http] | https://github.com/mattjbray/ocaml-decoders/releases/download/v0.4.0/decoders-v0.4.0.tbz sha256=18ebbd98901dff67c9944d465ed508df018c8ee8e13bfe037d5ad780584eebf7 sha512=a6221b40cc1c3d9ea46c5e7cec6c5992b923e390ce004c23d7f36e99974c10f6d4a690113255b85d3895f357e0dd44562e9bc03ba8708223cb1e56ba182c10d3 |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/decoders-yojson/decoders-yojson.0.4.0/opam |
Required by
- eriswith-test
- eris-lwtwith-test
- ppx_deriving_decoderswith-test