Deserializing JSON response without creating a class
<p>From the result of an API call I have a large amount of JSON to process.</p>

<p>I currently have this</p>

<pre><code>Object convertObj = JsonConvert.DeserializeObject(responseFromServer);
</code></pre>

<p>I am aware that I could do something like</p>

<pre><code>Movie m = JsonConvert.DeserializeObject&lt;Movie&gt;(responseFromServer);
</code></pre>

<p>And then use it like</p>

<pre><code>m.FieldName
m.AnotherField
//etc
</code></pre>

<p>Ideally I would like to do something like</p>

<pre><code>var itemName = convertObj["Name"];
</code></pre>

<p>to get the first Name value for the first item in the list.</p>

<p>Is this possible, or do I have to create a class to deserialize to?</p>

<p>The reason I do not want to create the class is I am not the owner of the API and the field structure may change.</p>

<p>Edit.</p>

<p>Okay so I created the class as it seems the best approach, but is there a way to deserialize the JSON into a list?</p>

<pre><code>var sessionScans = new List&lt;SessionScan&gt;();
sessionScans = JsonConvert.DeserializeObject&lt;SessionScan&gt;(responseFromServer);
</code></pre>

<p>Complains that it cannot convert SessionScan to generic list.</p>