Navi
Navi
CC#
Created by Navi on 3/26/2023 in #help
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
]
],
"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[][]
7 replies
CC#
Created by Navi on 10/17/2022 in #help
Datetime ToString format not being respected
3 replies