Also save session data to a json file.