I receive the following JSON result int the response:
{"result": { "":-41.41, "ABC":0.07, "XYZ":0.00, "Test":0.00 }}
I've prepared the following class for deserializating:
[DataContract]
public sealed class RpcResponse
{
[DataMember(Name = "result")]
public List<KeyValuePair<string, decimal>> Result { get; set; }
}
However when I'm tring to deserialize it with DataContractJsonSerializer the Result property ends up with having zero entries. (Also doesn't work when declaring Result as Dictionary<string, decimal>)
Is there a way to perform this with DataContractJsonSerializer?