transform raw datas into a clean json