code: def _create_json(self):
          
          data_json = {
              "name": self.name,
              "includesPattern": self.includesPattern,
              "excludesPattern": self.excludesPattern,
              "repositories": self._repositories,
              "principals": {
                  'users': self._users,
                  'groups': self._groups,
              }
          }
          return data_json
docs: JSON Documentation: https://www.jfrog.com/confluence/display/RTF/Security+Configuration+JSON