switch from Data to ToJson class