def write_options_to_JSON(self, filename):
fd = open(filename, "<STR_LIT:w>")<EOL>fd.write(json.dumps(_options_to_dict(self.gc), indent=<NUM_LIT:2>,<EOL>separators=('<STR_LIT:U+002C>', '<STR_LIT>')))<EOL>fd.close()<EOL>
Writes the options in JSON format to a file.

        :param str filename: Target file to write the options.