added json in/out translation and feeding facts to rule engine