So this sounds like you're going to have to write a parser (or interpreter), one that can evaluate commands such as equal
and equalOrGreaterThan
or short synax =
and >=
from the JSON file and build the expressions based of these commands.
Take a look at this link http://www.slideshare.net/relaxnow/lets-build-a-parser, it will give you some insight into what I mean. I wish I could quote it but its a slide show.