Returns a json string containing all relevant data to recreate this pyalveo.Client.

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