title: Accessed JArray values with invalid key value: "fields". Array position index expected
body: <p>I am using the guardian API to try and retrieve stories but keep receiving an exception. The string of json contains the below json, however I can't access the body using LINQ.</p>
  <p>Here it is:</p>
  <pre><code>{
      &quot;response&quot;:{
      &quot;status&quot;:&quot;ok&quot;,
      &quot;userTier&quot;:&quot;approved&quot;,
      &quot;total&quot;:1,
      &quot;startIndex&quot;:1,
      &quot;pageSize&quot;:10,
      &quot;currentPage&quot;:1,
      &quot;pages&quot;:1,
      &quot;orderBy&quot;:&quot;newest&quot;,
      &quot;results&quot;:[{
        &quot;id&quot;:&quot;sustainable-business/sustainable-finance-where-next-open-thread&quot;,
        &quot;sectionId&quot;:&quot;sustainable-business&quot;,
        &quot;sectionName&quot;:&quot;Guardian Sustainable Business&quot;,
        &quot;webPublicationDate&quot;:&quot;2014-02-13T13:27:00Z&quot;,
        &quot;webTitle&quot;:&quot;Where next for sustainable finance? - open thread&quot;,
        &quot;webUrl&quot;:&quot;http://www.theguardian.com/sustainable-business/sustainable-finance-where-next-open-thread&quot;,
        &quot;apiUrl&quot;:&quot;http://content.guardianapis.com/sustainable-business/sustainable-finance-where-next-open-thread&quot;,
        &quot;fields&quot;:{
          &quot;body&quot;:&quot;&lt;img src=\&quot;http://hits.theguardian.com/b/ss/guardiangu-api/1/H.20.3/98867?ns=guardian&amp;amp;pageName=Where+next+for+sustainable+finance%3F+-+open+thread+Article+2043222&amp;amp;ch=Guardian+Sustainable+Business&amp;amp;c2=461773&amp;amp;c4=MIC%3A+Finance+%28GSB%29%2CMIC%3A+Guardian+Sustainable+Business%2CPRO%3A+Sustainability+%28Guardian+Professional%29&amp;amp;c3=theguardian.com&amp;amp;c6=Laura+Paddison&amp;amp;c7=14-Feb-13&amp;amp;c8=2043222&amp;amp;c9=Article\&quot; width=\&quot;1\&quot; height=\&quot;1\&quot; /&gt;...&quot;
        }
       }]
       }
  }
  </code></pre>
  <p>I have tried every thing including this:</p>
  <pre><code>string story = (string)ja[&quot;response&quot;][&quot;results&quot;][&quot;fields&quot;][&quot;body&quot;];
  </code></pre>
  <p><strong>Update:</strong></p>
  <pre><code>public partial class Story : PhoneApplicationPage
  {
      string url;
      string jsonData;
  
      // Http used so the json can be retrived via the get async methods
      HttpClient webClient = new HttpClient();
  
      protected override void OnNavigatedTo(NavigationEventArgs e)
      {
          if (NavigationContext.QueryString.ContainsKey(&quot;key&quot;))
          {
              string encodedValue = NavigationContext.QueryString[&quot;key&quot;];
              url = Uri.UnescapeDataString(encodedValue);
              textBox.Text = url;
              guardianPanorama();
          }
      }
      private async void guardianPanorama()
      {
          try
          {
              HttpResponseMessage Result = await webClient.GetAsync(url);
  
              // This takes the http response content and is turned into a string
              jsonData = await Result.Content.ReadAsStringAsync();
             
              JObject ja = JObject.Parse(jsonData);
  
              // This takes the current bitcoin price and formats it so there is the      correct amount of decimal places
              string story = (string)ja[&quot;response&quot;][&quot;results&quot;][&quot;fields&quot;][&quot;body&quot;];
  
              // It then gets added to the textbox
              textBox.Text = story;
          }
          catch (Exception errors)
          {
              MessageBox.Show(&quot;There has been a error with the Guardian API&quot;);
              Console.WriteLine(&quot;An error occured:&quot; + errors);
          }
      }
  }
  </code></pre>
  <p>Exception:</p>
  <blockquote>
  <p>System.ArgumentException: Accessed JArray values with invalid key value: &quot;fields&quot;. Array position index expected.</p>
  <p>at Newtonsoft.Json.Linq.JArray.get_Item(Object key)</p>
  </blockquote>