My web api action returns an entity in odata json format such as is:
{
"@odata.context":"http://x/odata/$metadata#Category","value":[
{
"Id":734,"Number":"100","Description":"category description"
}]
}
Before using OData, I had my action return in JSON format, so I used to get the response like this:
var result = response.Content.ReadAsAsync<T>().Result;
However this method doesn't work anymore for OData JSON. How do I get to deserialize the result into my object?