adapt datetime data type in json