title: Parse Json into a schema-generated set of classes
body: <p>I have a Json schema and can use <code>NJsonSchema.CodeGeneration.CSharp</code> to create classes corresponding to it. So if I have json which conforms to the schema, I should be able to easily parse it into a collection of objects whose classes are the classes generated from the schema?</p>
  <p>So how can I do this - parse json and get out C# class objects that correspond to the objects in the json (as define by the schema)?</p>
  <p>As an example - if the schema defines a first object definition which is an array of a second object definition, then I would like to be able to parse it in such a way that the output is an instance of the class corresponding to the first object definition and it has a member which is a <code>List</code> of instances of the class corresponding to the second definition. It seems that the schema knows all the information required to do this, so it should be a single line - I appreciate I could do long-hand parsing (eg converting each item in the array) to achieve the same result.</p>
  <p>I would think this would be a primary purpose of having C# classes generated from a schema, so what's the magic method I'm missing?</p>
  <p>I'm also happy to write C# classes and generate a schema from that if it's a more workable solution.</p>
  <p>I've used <code>NJsonSchema</code> but happy to use any other C# json schema and code generation technique that achieves the same end.</p>
  <p>UPDATE: After discussion I've seen that if <code>NJsonSchema</code> is used to generate classes from the schema, the <code>TypeScript</code> version of those classes each have a <code>fromJS</code> method which sounds like what I want but they're missing from the C# version. I'm happy to use something other than <code>NJsonSchema</code> to generate classes from schema if it provides a solution.</p>