C#C
C#3y ago
arch_il

✅ Why can't I deserialize list of tuples?

I Got List<bool, string> inside my code. This is how I wrote it down in Json.
"texts": [
    {
        "Item1": true,
        "Item2": "hello"
    },
    {
        "Item1": false,
        "Item2": "hi"
    }
]

But bool is always false and string is always equal to null. Is it wrong format or something?
Was this page helpful?