write_data_to_json

compas_fab.utilities.write_data_to_json(data, file)[source]

Write data to json file.

Parameters
  • data (dict, list, tuple, str, unicode, int, long, float, boolean, None) – The data to write to json file. Data must be JSON serialisable.

  • file (str) – The path where to save the data.