Capgemini Interview Question

how do you serialize and de-serialize and object