save alltags and exceptions in json