JsonLogic
jsonlogic.com
What Jamie wrote
Neat way to store rules and other logic in various systems to execute in multiple locations.
JsonLogic isn’t a full programming language. It’s a small, safe way to delegate one decision. You could store a rule in a database to decide later. You could send that rule from back-end to front-end so the decision is made immediately from user input. Because the rule is data, you can even build it dynamically from user actions or GUI input.
JsonLogic has no setters, no loops, no functions or gotos. One rule leads to one decision, with no side effects and deterministic computation time.
Seems like a nice implementation agnostic way to store rules.
JsonLogic is, effectively, an abstract syntax tree, so order of operations is unambiguous.
Has parsing libraries for Javascript. Python, PHP, and Ruby.