def METHOD_NAME(self, file_name):
    """
    Convert the Python dictionary to JSON and write it to a file.
    :param file_name: the JSON file name
    :return: the java.io.File object
    """
    _method_name = '_write_to_json_file'
    from wlsdeploy.json.json_translator import PythonToJson as JPythonToJson
    self.logger.finer('WLSDPLY-01712', 'JSON', file_name, class_name=self._class_name, method_name=_method_name)
    try:
        return JPythonToJson(self.dictionary).write_to_json_file(file_name)
    except JJsonException, je:
        translate_ex = exception_helper.create_translate_exception('WLSDPLY-01713', file_name,
                                                                   je.getLocalizedMessage(), error=je)
        self.logger.throwing(translate_ex, class_name=self._class_name, method_name=_method_name)
        raise translate_ex