Add output of rule results to a .json file