© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
Zigy

Problem with deserializing JSON file.

Hello there
I am trying to deserialize a JSON like the following:
{"[982367487645900, 504339357638715104]":["id"]}
{"[982367487645900, 504339357638715104]":["id"]}

Into an
Dictionary<List<long>, List<string>>
Dictionary<List<long>, List<string>>

But newtonsoft.json (Which is what I am using for deserializing the JSON file) says that it cannot convert a string into a collection
The string here being
"[76561198801345900, 504332241820975104]"
"[76561198801345900, 504332241820975104]"
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Deserializing nested array json file.
C#CC# / help
2y ago
❔ Deserializing JSON
C#CC# / help
3y ago