title: Unable to use 'dynamic' with Json.Net and Universal Apps
body: <p>I have the following code</p>
  
  <pre><code>var client = new HttpClient();
  var url = new Uri("https://someuri/someresource", UriKind.Absolute);
  var response = await client.GetAsync(url);
  var content = await response.Content.ReadAsStringAsync();
  var json = JsonConvert.DeserializeObject(content) as dynamic;
  </code></pre>
  
  <p>As per what I see when I debug the code, everything is completed successfully; i.e., the above returns the expected JSON, and <code>json</code> object has the expected properties... let's assume it is:</p>
  
  <pre><code>{ "current_page": 1, "total_pages": 7, "items": [ ... ] }
  </code></pre>
  
  <p>However, when I do <code>json.current_page</code>, I get the following exception:</p>
  
  <blockquote>
    <p>'object' does not contain a definition for 'current_page' and no
    extension method 'current_page' accepting a first argument of type
    'object' could be found (are you missing a using directive or an
    assembly reference?)</p>
  </blockquote>
  
  <p>Does anyone has an ides on what's going wrong here?</p>
  
  <p>P.S. I tried it with both types of Universal Apps, Windows 8.1 and Windows Phone 8.1.</p>
  
  <p>P.S. Same code works with a Console application, but not Universal Apps.</p>