pysdic.Mesh.to_json_file#

Mesh.to_json_file(file_path, *, make_dirs=False, **kwargs)#

Serialize the object to a JSON file.

Parameters:
  • file_path (Any) – The path to the file where the JSON representation of the class will be saved (str, Path, …).

  • make_dirs (bool, optional (default: False)) – If True, the method will create any missing directories in the file path before writing the JSON.

Return type:

None