Initial commit of generator with json reference implementation.