Rules engine with JSON based definitions.