Open
Description
Description
Items retrieved from Cosmos can contain JArray/Jobject, when the items are put into Hybrid cache the (de)serialization goes wrong
Reproduction Steps
- Create a class:
public class Demo
{
public string Id { get; set; }
public Dictionary<string, object> Settings { get; set; } = new();
}
- Store a json object in Cosmos:
{
"id": "abc",
"settings": {
"abc": [ {"id": 1 }, {"id": 1 }]
}
}
-
Retrieve the item from Cosmos and store in hybrid cache
-
Retrieve item from hybrid cache
Expected behavior
Unsure
Actual behavior
The JArray/JObject objects are incorrectly (de)serialized.
Regression?
no
Known Workarounds
No response
Configuration
No response
Other information
No response