ezjsonm-lwt

Simple Lwt-based interface to the Jsonm JSON library
README

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"
Install
Published
31 Jul 2020
Sources
ezjsonm-v1.2.0.tbz
sha256=870bbe1c24484bb7e1acce44859dd521c24cb8a8f0e74042a62418c68671cce0
sha512=f603642ecdd01696017d0a8fef0ae8867777fbced53ad670afa3da8f12e2c101a5c6cd201b7917685323bc9033793dd406c6d333ed4a24d2d4d4d6c88527693b
Dependencies
lwt
>= "2.5.0"
jsonm
>= "1.0.0"
ppx_sexp_conv
with-test & >= "v0.9.0"
alcotest
with-test & >= "0.4.0"
dune
>= "1.0"
ezjsonm
= version
Reverse Dependencies