hpcflow.sdk.core.utils.read_JSON_file#

hpcflow.sdk.core.utils.read_JSON_file(path, variables=None)#

Load a JSON file. This will produce basic objects.

Parameters:
  • path – Path to the JSON file to parse.

  • variables (dict[str, str] | Literal[False] | None) – String variables to substitute in the file given by path. Substitutions will be attempted if the file looks to contain variable references (like “<<var:name>>”). If set to False, no substitutions will occur.

Return type:

Any