Adds session data in JSON