SIO-1584 Switch to a JSON based serializer for serializing sessions

Change-Id: If2c175b1e4d7a07a080bed1bd863c795767a3a17