C#C
C#3y ago
149 replies
PracticalPotato

❔ Reading from a JSON file

I have a JSON file in the following format
{
  "type" : {
    "path" : "filename",
    "path2" : "filename",
  },
  "type2" : {
    "path" : "filename"
    }
  }
}

where I don't know how many types I have or how many paths per type.

How would I go about reading and storing this in C#?
Was this page helpful?