Readme: make example compile
The example in README does not seem to compile:
type t = (string * int) list
let encoding = list (tup2 string int31)
let v = [("foo", 32); ("bar", 0)]
let j = Json.construct encoding v
let w = Json.destruct j
let () = assert (v = w)
I think the last but one line should be let w = Json.destruct encoding j
.
Also, add an open Data_encoding
directive?