package json_decoder
Install
Dune Dependency
Authors
Maintainers
Sources
json_decoder-0.1.1.tbz
sha256=14a5077fce1665f60930aef9d67755ecd16fa71796d94b311207d4d30f444014
md5=04d5c7b9b55ec973bb88ac55789addef
README.md.html
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_decoder
Documentation
Hosted auto-generated documentation can be found here
Examples
Until we work out better examples, check out the tests.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>