C#C
C#3y ago
Navi

Json array with multiple types to object

Hi,
I've got the following JSON Array of an array (that I can't change)
"values": [
    [
        "2712",
        1
    ],
    [
        "2.40",
        1
    ]
],


How would I go about deserializing this using system.text.json?

I'm fine with a solution that gives me a class (with a string and int as properties) or with casting the int to a string somehow and thus having an string[][]
Was this page helpful?