decoders-ezjsonm
Elm-inspired decoders for Ocaml
Description
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.
Install
copied = false, 2000)"
:class="{ 'border-gray-700': !copied, 'text-gray-100': !copied, 'focus:ring-orange-500': !copied, 'focus:border-orange-500': !copied, 'border-green-600': copied, 'text-green-600': copied, 'focus:ring-green-500': copied, 'focus:border-green-500': copied }">
- Published
- 25 Jun 2019
- Authors
- Maintainers
Sources
decoders-v0.2.0.tbz
sha256=62b3e2706dafe526c832bce2ea871f01d50b0464baf9bb90db3a819ebdf17e65
sha512=8c564b7bf01b906a384128f588c323425db2af3476ff83f1e4ed1773786a2f444949b9e6b81f5ba1e405cc5dd0a782ed10cdea55005be289660c5bc81e6481d5
Dependencies
Reverse Dependencies