return session as json