learn ocaml by writing a json parser