read_json#

ansys.aedt.core.generic.file_utils.read_json(input_file: str | Path, encoding: str = 'utf-8') dict#

Load a JSON file to a dictionary.

Parameters:
input_filestr or pathlib.Path

Full path to the JSON file.

encodingstr, optional

Text encoding used to read the JSON file. The default is "utf-8".

Returns:
dict

Parsed JSON file as a dictionary.