json/hash logical expression evaluator