code: def to_json(self):
          
          data = dict(self.__dict__)
          data.pop('context',None)
          data['oauth'] = self.oauth.to_dict()
          data['cache'] = self.cache.to_dict()
          return json.dumps(data)
docs: Returns a json string containing all relevant data to recreate this pyalveo.Client.