0

I came across durable-rules (python) https://github.com/jruizgit/rules rule engine framework.

I manage to write a dataset defined in Python code into a JSON file but cannot read it and execute it.

Is it possible, and does anyone have an example of how to load a dataset from a JSON file and use/execute it in the Python code?

ninja
  • 13
  • 2
  • Do you just need to open a json file stored locally? Then this should work: `import json; with open("json_filename.json") as f: json_data = json.load(f)` – juanpethes Jul 01 '23 at 14:09
  • Not exactly, I need to load and use ruleset stored in JSON fille using durable-rules library – ninja Jul 01 '23 at 17:32

0 Answers0