change the session invite to be the key string, not the object, as it doesn't json serialize
whitespace cleaning