Implement serialize doc datas