Error in Deserializing to DataResultData array

After calling DataRetrieval/GetData, the response.Context contained the DataResultData array for 1 metric set

image

I then attempted to deserialize response.Content using JsonConvert.DeserializeObject<DataResultData[]>. However, I am getting the exception below:

image

wherein, cells[0] is

image

How do I successfully place the object into a DataResultData[] ?

Many thanks!

Hello,

The contract you’re referring to is usually only ever serialized, not de-serialized. We also use a lot of special model mapping to deal with type conversions.

My suggestion would be to directly work with the JObject and not try to convert it back to a contract, which would not be of any value anyways (the contracts have no helper methods or anything else).

Thanks.

Thanks Terrence, much appreciated.

1 Like