title: Deserialize fragment of JSON using JavaScriptSerializer ASP.NET
body: <p>Is possible to <code>Deserialize</code> just a fragment of JSON using <a href="http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.aspx" rel="nofollow"><code>JavaScriptSerializer</code></a>? I don't need all data from JSON, just a section.</p>
  
  <p>The JSON data look like this:</p>
  
  <pre><code>// **** snip ****
  {
      "response":  {
          some data
      }
  },
  "forecast":  {
      "txt_forecast":  {
      "date": "7:00 AM PST",
      "forecastday":  [ // &lt;-- section needed
          {
              some data....
          },
          .........
          {
              some data....
          }
      ]
  },
  "simpleforecast":  {
      "forecastday":  [
          more data
      ]
  }
  // **** snip ****
  </code></pre>
  
  <p>This is part I need to parse:</p>
  
  <pre><code>"forecastday":  [ // &lt;-- section needed
      {
          some data....
      },
      .........
      {
          some data....
      }
  ]
  </code></pre>
  
  <p>I tried with <code>forecast</code> object ( fragment of whole data ), but it returns null.</p>
  
  <pre><code>var jsonData = new WebClient().DownloadString(url);
  JavaScriptSerializer ser = new JavaScriptSerializer();
  forecast_class forecast = ser.Deserialize&lt;forecast_class&gt;(jsonData);
  </code></pre>