Verify nested objects and ids are being serialized correctly