pm4py.write.write_ocel2_json#

pm4py.write.write_ocel2_json(ocel: OCEL, file_path: str, encoding: str = 'utf-8')[source]#

Writes an OCEL2.0 object to disk to an JSON file (exported as .jsonocel file).

Parameters:
  • ocel (OCEL) – OCEL object

  • file_path (str) – target file path to the JSON file

  • encoding (str) – the encoding to be used (default: utf-8)

import pm4py

log = pm4py.write_ocel2_json(ocel, '<path_to_export_to>')