Unifinished saving rules to json