Finally got tired of my ad-hoc parser and wrote a bit of code to serialize the JSON into something actually usable. Massively reduce the size of JSON -> OCaml code.