package json_of_jsonm

  1. Overview
  2. Docs
json_of_jsonm_lib is a JSON encoder and decoder library that converts text to and from a

Install

Dune Dependency

Authors

Maintainers

Sources

json_of_jsonm-1.0.0.tbz
sha256=0c9a8156a1ed0a5bd7f9eea1375f1828d48aed4a2fb88a9bedc484ea5ff75a5d
md5=1503d4bcb108325c723405271f32bc56

doc/src/json_of_jsonm/json_string.ml.html

Source file json_string.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Json_of_string = Json_of_jsonm_monad.Make(struct
    type 'a t = 'a

    let return a = a
    let (>>=) a f = f a
  end)

type json = Json_of_string.json

let json_of_string = Json_of_string.decode_string
let json_of_string_exn = Json_of_string.decode_string_exn
let json_to_string = Json_of_string.encode_string
let json_to_string_exn = Json_of_string.encode_string_exn
let json_to_string_hum = Json_of_string.encode_string_hum

type t = Json_of_string.json

let of_string t = json_of_string_exn t
let to_string t = json_to_string_exn t
OCaml

Innovation. Community. Security.