opam-version: "2.0"
maintainer: "peter.degroff@gmail.com"
authors: "Peter DeGroff"
license: "ISC"
homepage: "https://github.com/dagoof/ocaml-json-decoder"
doc: "https://dagoof.github.io/ocaml-json-decoder/doc"
bug-reports: "https://github.com/dagoof/ocaml-json-decoder/issues"
dev-repo: "git+https://github.com/dagoof/ocaml-json-decoder.git"
depends: [
  "ocaml" {>= "4.02.3"}
  "dune"
  "alcotest" {with-test}
  "result"
  "yojson"
]
build: [
  ["dune" "subst"] {pinned}
  ["dune" "build" "-p" name "-j" jobs]
  ["dune" "runtest" "-p" name "-j" jobs] {with-test}
]

description: """
JSON Decoder is an OCaml module that enables flexible decoding of JSON values.
It is based on Elm's Json.Decode module with a few tweaks.

This module allows you to do things like decode a field based on the type or
content of some other field, or even the failure to decode some other field.
It allows you to shape the results of a decode into a structure of your choice.

Rather than unpacking a JSON value directly into an analogous OCaml structure;
this module helps you to massage data into the shape you want by describing
the transformations that need to take place.
"""

url {
  src: "https://github.com/dagoof/ocaml-json-decoder/releases/download/v0.1.1/json_decoder-0.1.1.tbz"
  checksum: ["md5=04d5c7b9b55ec973bb88ac55789addef"]
}

