I did a rules engine to the company that I work based in this specification, but using go language. It is a very successful project because our clients can create rules without tech people around in our frontend, it's very easy to translate our rules into json and store it.
I even did a library to implement it in go language: https://github.com/diegoholiveira/jsonlogic