package jsonaf
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=55d5a46e69891b6753135491b052b4cbb886a76f576099120911984b098806ce
Description
A library for parsing, manipulating, and serializing data structured as JSON.
Added to opam-repository:
README
Jsonaf
This is a library for parsing, manipulating, and serializing data structured as JSON. It's built on the Angstrom and Faraday libraries. The underlying type is a simple polymorphic type:
type t =
[ `Null
| `False
| `True
| `String of string
| `Number of string
| `Object of (string * t) list
| `Array of t list
]Note that Number has a type of string! This is intentional, as it is left up to the user to decide how numbers should be interpreted. Certain fields might be integers while others might be floats.
The most bare-bones use case of this library is to pattern match on the type above and use the following two functions:
val of_string : string -> t
val to_string : t -> stringJsonaf_kernel
The kernel library simply contains the type and functions to serialize and deserialize the type to a string. It has no other dependencies outside of Angstrom and Faraday.
Dependencies (6)
Dev Dependencies
None
Optional Dependencies
None
Used by (7)
- decoders-jsonaf
-
hardcaml_of_verilog
>= "v0.17.0" - ocaml_openapi_generator
-
of_json
>= "v0.17.0" - openrouter_api
-
ppx_jsonaf_conv
>= "v0.17.0" -
sexp
>= "v0.17.0"
Conflicts
None
Build status
Results of building jsonaf 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 |
|---|---|---|---|---|---|
| v0.17.0 (this version) | n/a | n/a | good | good | good |
| v0.16.0 | n/a | good | good | n/a | n/a |
| v0.15.0 | good | good | good | n/a | n/a |
- 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