Add support for generating the json file.