Added serialize file to convert everything to JSON.