hpcflow.sdk.core.utils.read_JSON_string#
- hpcflow.sdk.core.utils.read_JSON_string(json_str, variables=None, used_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.
used_variables (dict[str, str] | None) – If given, updated with the values substituted for each variable.
- Return type:
Any