Handle serialization/deserialization at parser level