def export_jwks_as_json(self, private=False, issuer=""):
        """
        Export a JWKS as a JSON document.

        :param private: Whether it should be the private keys or the public
        :param issuer: The entity ID.
        :return: A JSON representation of a JWKS
        """
        return json.dumps(self.export_jwks(private, issuer))
Export a JWKS as a JSON document.

        :param private: Whether it should be the private keys or the public
        :param issuer: The entity ID.
        :return: A JSON representation of a JWKS