Adding an option to export a json config