Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
[Fork] System.Text.Json fails to deserialize JSON if not every member of the type is present by haldocalypse

                [
                    {
                        "name": "General Info",
                        "url": "/Info",
                        "permissions": ["financialReporting"]
                    },
                    {
                        "name": "Settings",
                        "url": "/Settings",
                        "permissions": [
                            "Admin"
                        ]
                    }
                ]
Deserialization success
Dumping object(System.Collections.ObjectModel.ReadOnlyCollection`1[MenuItem])
[
   {
   Name         : General Info
   Permissions  : [
               FinancialReporting
]
   Url          : /Info
   },
   {
   Name         : Settings
   Permissions  : [
  Admin
]
   Url          : /Settings
   }
]
Cached Result
Last Run: 1:56:10 pm
Compile: 0.009s
Execute: 0.14s
Memory: 11.75Mb
CPU: 0.149s