package ezjsonm
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=16ca3b0ad22a4299e52bf73892b68ca232eb1b7b7ef7e8f1f7686750042e719a
md5=3a081dee6fc0cc0ce9462986888fa0bf
Description
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 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 (1)
-
alcotest
with-test & >= "0.4.0"
Used by (38)
-
bap
= "0.9.9"
- bap-phoenix
-
bap-server
>= "0.2.0"
-
cow
>= "1.1.0"
-
data-encoding
< "1.0.0"
- decoders-ezjsonm
-
ezjsonm-lwt
< "1.0.0"
- farfadet
- geojson
- geojsone
-
gitlab
>= "0.1.3" & < "0.1.7"
-
learn-ocaml
< "1.0.0"
- learn-ocaml-client
-
mastodon-archive-viewer
< "0.4.0"
-
mirage-tc
>= "0.3.0"
-
mustache
>= "1.0.1" & < "2.1.0" | >= "3.1.0" & < "3.3.0"
- mustache-cli
- obi
- ocveralls
-
opium
>= "0.12.0" & < "0.16.0" | = "0.18.0"
-
opium_kernel
< "0.18.0"
- plotly
-
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
-
resto
>= "0.6"
-
soupault
< "3.2.0"
-
tezos-base
< "9.0"
- topojson
- topojsone
-
vpnkit
>= "0.1.1"
-
xapi-rrd
= "1.8.2"
- yaml
- yaml-sexp
- yurt
Conflicts
None