pm4py.read.read_ocel2_json#
- pm4py.read.read_ocel2_json(file_path: str, encoding: str = 'utf-8') OCEL[source]#
Reads an OCEL 2.0 event log from a JSON-OCEL2 file.
- Parameters:
file_path (
str) – Path/URI to the JSON file (.jsonocel).encoding (
str) – Encoding to be used (default: utf-8).
- Return type:
OCEL
import pm4py ocel = pm4py.read_ocel2_json("<path_or_uri_to_ocel_file.jsonocel>")