package json_decoder
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=14a5077fce1665f60930aef9d67755ecd16fa71796d94b311207d4d30f444014
md5=04d5c7b9b55ec973bb88ac55789addef
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.
Added to opam-repository:
README
A JSON Decoder based on Elm's Json.Decode
Release v0.1.1
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.
Installation
JSON Decoder can be installed with opam:
opam install json_decoderDocumentation
Hosted auto-generated documentation can be found here
Examples
Until we work out better examples, check out the tests.
Dev Dependencies (1)
-
alcotest
with-test
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building json_decoder with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.1.1 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure