The reference Python implementation (nadirizr/json-logic-py) hadn't been updated for modern Python. We forked it to fix that, then added a vars operator backed by JSONPath for multi-value resolution -- useful when branch conditions need to evaluate model outputs or array-valued fields.
Not part of the standard; the var operator is unchanged so existing rules work without modification.
Comments
glashatay•1h ago
interesting approach. how do you handle the branching when jsonpath returns multiple values - do you iterate through them or treat it as a boolean check? asking because i tried something similar with json-logic for routing model outputs and ended up just flattening the array in preprocessing
glashatay•1h ago