© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
3y ago
•
6 replies
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
]
],
"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[][]
string[][]
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
❔ sending multiple object json via API
C
C# / help
3y ago
❔ JSON array to List KeyValuePair with Newtonsoft.JSON?
C
C# / help
4y ago
✅ object types?
C
C# / help
3y ago
❔ deserialize json object which should be an array
C
C# / help
4y ago