DROOLS-573: adding support for JSON