ToolModel.to_json

ToolModel.to_json(filepath, pretty=False, compact=False, minimal=False)[source]

Convert an object to its native data representation and save it to a JSON file.

Parameters:
filepathstr

The path to the JSON file.

prettybool, optional

If True, format the output with newlines and indentation.

compactbool, optional

If True, format the output without any whitespace.

minimalbool, optional

If True, exclude the GUID from the JSON output.