title: Deserialize JSON string to Dictionary<string,object>
body: <p>I have this string:</p>
  
  <pre><code>[{ "processLevel" : "1" , "segments" : [{ "min" : "0", "max" : "600" }] }]
  </code></pre>
  
  <p>I'm deserializing the object:</p>
  
  <pre><code>object json = jsonSerializer.DeserializeObject(jsonString);
  </code></pre>
  
  <p>The object looks like:</p>
  
  <pre><code>object[0] = Key: "processLevel", Value: "1"
  object[1] = Key: "segments", Value: ...
  </code></pre>
  
  <p>And trying to create a dictionary:</p>
  
  <pre><code>Dictionary&lt;string, object&gt; dic = json as Dictionary&lt;string, object&gt;;
  </code></pre>
  
  <p>but <code>dic</code> gets <code>null</code>.</p>
  
  <p>What can be the issue ?</p>