I have a large JSON file that I want to load into my project. I want to then search for the name and return the type. Example below:
[
  {
    "Name": "Name1",
    "Type": "TypeA"
  },
  {
    "Name": "Name2",
    "Type": "TypeB"
  }
]
My problem is that I'm not sure what is the best way to do it. Should i be creating an object class and then loading the file into it?
I've been trying to do this by loading it from my resources. I just cant seem to do it, or find any example of others doing this which leads me to believe I'm doing it the wrong way. I've tried as below:
var resourceName = FS.Properties.Resources.types;
dynamic jsonDe = JsonConvert.DeserializeObject<TypeList>(resourceName);
And
dynamic jsonDe = JsonConvert.DeserializeObject<TypeList>("FS.Resources.types.json");
Any advice would be very welcome. Thanks
 
     
     
     
    