Implemented parsing of Rules from JSON