I have a PATCH API endpoint that receives Delta<T>
, and I need to serialize it, enqueue it, and deserialize it in another process.
Usage JsonConvert.SerializeObject
returns {}
. The incoming Delta<T>
looks correct.
Any idea why Delta<T>
serialize to an empty JSON object?
UPDATE
- Using
System.Web.OData.Delta<T>
gives me {}
.
- Usage
System.Web.Http.OData.Delta<T>
gives full serialization T
including immutable properties.
source
to share