Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
https://stackoverflow.com/questions/77879422/system-text-json-dictionary-deserialisation-as-constructor-parameter-with-refere by dbc_MinLength
Environment version: .NET 9.0.0 (9.0.0), Unix 6.8.0.1014
System.Text.Json version: System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51

{
  "$id": "1",
  "MyClass": {
    "$id": "2",
    "MyDictionary": {
      "$id": "3",
      "aaaa": 5661,
      "bbbbb": 5661
    }
  },
  "MyClassDictionary": {
    "$ref": "3"
  }
}
Cached Result
Last Run: 3:06:15 pm
Compile: 0.019s
Execute: 0.12s
Memory: 10.03Mb
CPU: 0.139s