C#
C#

help

Root Question Message

moare
moare11/17/2022
❔ deserialize json object which should be an array

Hi, how can i deserialize a json-string like this, if i dont know how many "items" (item0, item1, item2) are there. If it would be an array, it would be no problem, but sadly it isn't.

c#, .net7

{
  "item0": {
    "name": "Name1"
  },
  "item1": {
    "name": "Name2"
  },
  "item2": {
    "name": "Name3"
  },
  /*...*/
}
Ero
Ero11/17/2022
dictionary
moare
moare11/17/2022
damnnnnn... i am stupid, thanks!!!!
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy