title: Loading in JSON as a resource to an object
body: <p>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: </p>
  
  <pre><code>[
    {
      "Name": "Name1",
      "Type": "TypeA"
    },
    {
      "Name": "Name2",
      "Type": "TypeB"
    }
  ]
  </code></pre>
  
  <p>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? </p>
  
  <p>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: </p>
  
  <pre><code>var resourceName = FS.Properties.Resources.types;
  dynamic jsonDe = JsonConvert.DeserializeObject&lt;TypeList&gt;(resourceName);
  </code></pre>
  
  <p>And</p>
  
  <pre><code>dynamic jsonDe = JsonConvert.DeserializeObject&lt;TypeList&gt;("FS.Resources.types.json");
  </code></pre>
  
  <p>Any advice would be very welcome. Thanks</p>