hpcflow.sdk.core.utils.read_JSON_string#

hpcflow.sdk.core.utils.read_JSON_string(json_str, variables=None)#

Load a JSON string. This will produce basic objects.

Parameters:
  • json_str (str) – The JSON string to parse.

  • variables (dict[str, str] | Literal[False] | None) – String variables to substitute in json_str. 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