A concise function that serializes all contents of a deep object.