Move Json out of base TCP class.