add serializeDeepObject for the complex data structure