save all rules for a site in rules.json