package ezjsonm
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=08633e0f0e767a8ae81935ca7e74f1693b85a79c4502d568eedff5170f0cd77b
sha512=b731036384115603af9187464695418d27b7cf6f763c8dbc0812db62a7657cac1b6019d3b205b1c95ae81b7dab0bd4037390d977ee8c122bef29a9ddef771e18
Description
Ezjsonm provides more convenient (but far less flexible)
input and output functions that go to and from string
values.
This avoids the need to write signal code, which is useful for
quick scripts that manipulate JSON.
More advanced users should go straight to the Jsonm library and use it directly, rather than be saddled with the Ezjsonm interface.
README
Ezjsonm
An easy interface on top of the Jsonm library.
This version provides more convenient (but far less flexible) input and output functions that go to and from [string] values. This avoids the need to write signal code, which is useful for quick scripts that manipulate JSON.
More advanced users should go straight to the Jsonm[1] library and use it directly, rather than be saddled with the Ezjsonm interface.
Examples
For instance, you can explore the HTTP status code specified in the JSON format here. After downloading that file, you can open an OCaml toplevel and write:
# #require "ezjsonm";;
# let json = Ezjsonm.from_channel (open_in "4.json");;
# Ezjsonm.(get_string (find json ["codes"; "418"; "summary"]))
- : string = "I'm a teapot"
Dev Dependencies (3)
-
conf-npm
with-test
-
js_of_ocaml-compiler
with-test
-
alcotest
with-test & >= "1.5.0"
Used by (59)
-
bap
= "0.9.9"
- bap-phoenix
-
camyll
< "0.2.0" | >= "0.4.1"
- carbon
-
cow
>= "1.1.0"
- data-encoding
- decoders-ezjsonm
- dkml-dune-dsl-show
- dune-compiledb
- equinoxe
- ez_api
- ezjsonm-encoding
-
ezjsonm-lwt
>= "1.3.0"
- farfadet
-
fit
< "1.2.0"
- geojson
- geojsone
-
gitlab
>= "0.1.3" & < "0.1.7"
-
jekyll-format
>= "0.2.0"
- learn-ocaml
- learn-ocaml-client
- MlFront_Cli
- mastodon-archive-viewer
-
mustache
>= "1.0.1" & < "2.1.0" | >= "3.1.0" & < "3.3.0"
- mustache-cli
- obi
- octez-libs
- ocveralls
-
opam-bin
>= "0.9.5" & < "1.1.0"
- opam_bin_lib
-
opium
>= "0.12.0" & < "0.16.0" | = "0.18.0"
- plotly
- ppx_deriving_ezjsonm
-
ppx_deriving_yaml
< "0.2.2"
- ppx_protocol_conv_jsonm
-
ppx_yojson
>= "1.2.0"
-
qcow
!= "0.10.0"
-
qcow-format
>= "0.2"
- qcow-tool
- reddit_api_async
- reddit_api_kernel
-
resto
>= "0.6"
- soupault
- spatial-shell
- terminus
-
textmate-language
>= "0.3.0"
-
tezos-base
< "10.2" | >= "13.0"
- tezos-hacl
- tezos-openapi
-
tezos-stdlib-unix
>= "8.0" & < "9.0" | >= "9.2"
- tezt
-
timmy-unix
>= "1.1.5"
- topojson
- topojsone
-
vpnkit
>= "0.1.1"
-
xapi-rrd
= "1.8.2"
- yaml
- yaml-sexp
- yurt
Conflicts
None