2 * https://github.com/ocaml-community/yojson/blob/master/examples/constructing.ml
4 let test_constructing () =
7 ("id", `String
"398eb027");
8 ("name", `String
"John Doe");
11 [ ("id", `Int
1); ("title", `String
"The Art of Flipping Coins") ] );
13 |> Yojson.Basic.pretty_to_string
14 |> Assrt.equals_string __LOC__
16 \ \"id\": \"398eb027\",\n\
17 \ \"name\": \"John Doe\",\n\
18 \ \"pages\": { \"id\": 1, \"title\": \"The Art of Flipping Coins\" }\n\