Added json output for session during testing.