code: def json(self):
          
          return json.dumps(self.dict_rules,
                            sort_keys=True,
                            indent=2,
                            separators=(',', ': '))
docs: Output the security rules as a json string.
  
          Return:
              str