C
C#6mo ago
Stefan

OData Dictionary Response

Since I am not very familiar with OData yet, I have resorted to asking this question here: Suppose I have a model with a property
public Dictionary<string,string> Data { get; set; }
public Dictionary<string,string> Data { get; set; }
Using OData, the response looks like this:
Result: {
Keys: [ /* all keys in list form here */ ],
Values: [ /* all values in list form here */ ]
}
Result: {
Keys: [ /* all keys in list form here */ ],
Values: [ /* all values in list form here */ ]
}
though I expected it to be serialized like this:
Result: {
"key1": "value1",
"key2": "value2",
// etc.
}
Result: {
"key1": "value1",
"key2": "value2",
// etc.
}
How can I turn this around?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server