title: deserialize json to class (manually with reflection)
body: <p>I am working with a cut down version of C# 3.5 on a platform that doesn't have the flexibility of using third party libraries.</p>
  
  <p>While I can parse JSON (using a json stream reader), I am not sure how to actually turn it into a class. (there is also no access to the usual json to class deserializer).</p>
  
  <p>Does anyone know how to use reflection to manually (yet dynamically) turn a JSON string into a class?</p>
  
  <p>sample Json:</p>
  
  <p><code>
  {"items":[
       {"firstName":"bob", "lastName":"smith", "id":1001, "foods": [{"name":"fish", "name":"bacon", "name":"cereal"}]},
       {"firstName":"sarah", "lastName":"smith", "id":1002, "foods": [{"name":"bacon", "name":"apples", "name":"chocolate"}]},
       {"firstName":"tom", "lastName":"waffle", "id":1003, "foods": [{"name":"waffles", "name":"sticks", "name":"stones"}]},
       {"firstName":"reginald", "lastName":"hamtuft", "id":1003, "foods": [{"name":"ham", "name":"cigars", "name":"noisy children"}]}
  ]}
  </code></p>