def from_json_file(cls, path_json_file, **kwargs):
        r"""
        Loads a configuration file from a json file.

        Args:
            path_json_file (`str`):
                The path to the json file.
        """
        with open(path_json_file, 'r', encoding='utf-8') as file:
            json_object = json.load(file)

        return json_object

        Loads a configuration file from a json file.

        Args:
            path_json_file (`str`):
                The path to the json file.
        
swift/tuners/utils.py