Added proper checking of task jsons data.