title: Reading JSON string in C#
body: <p>I have data in JSON file format like</p>
  <pre><code>{
     &quot;default&quot;:{
      &quot;name&quot;:&quot;username&quot;,
      &quot;school&quot;:&quot;school_name&quot;
      },
      
      &quot;type1&quot;:{
      &quot;name&quot;:&quot;studentname&quot;,
      &quot;school&quot;:&quot;schoolName&quot;
      },
      
      &quot;type2&quot;:{
      &quot;name&quot;:&quot;user_name&quot;,
      &quot;school&quot;:&quot;schooltitle&quot;
      }
  }
  </code></pre>
  <p>I am reading data using</p>
  <pre><code>Dictionary&lt;string,string&gt; values = JsonConvert.DeserializeObject&lt; Dictionary&lt;string,string&gt; &gt;( json )
  </code></pre>
  <p>where json is a text from json file. I want to access specific code block like if student is of type 1 then check if that type exist and access that block otherwise access default block. How to do it? I want inner block values as key value pair</p>