title: NewtonSoft JArray - how to select multiple elements with LINQ
body: <p>I have some JSON which I then parse to JArray object. I want to filter the JArray so it then has only two properties, Title and BodyText. But whatever I try I can only select one value using LINQ.</p>
  
  <pre><code>[HttpGet]
  public JsonResult AjaxGetNewsItems()
  {
      string json = JsonConvert.SerializeObject(news.GetNewsItems(), formatting:Formatting.Indented);
      var v = JArray.Parse(json);
  
      //var items =
      //    v.Where(
      //        x =&gt;
      //            x["Title"].ToString() != string.Empty &amp;&amp;
      //            x["BodyText"].ToString() != string.Empty)
      //        .Select(x =&gt; x["Title"])
      //        .ToList();
  
      var title = (string) v[0]["Title"];
  
      var titleBodytext = from p in v
      select v[0]["Title"]["BodyText"];
      foreach (var item in titleBodytext)
      {
      }
      //var titleBodytext =
      //    from c in v[0]["Title"]["BodyText"]
      //    group c by c
      //    into g
      //    select new {  };
  
      //JArray a = JArray.FromObject(news.GetNewsItems());
      //string titleBodytext = (string) newsItems["Title"]["Bodytext"];
  
      return new JsonResult()
      {
          Data = json,
          JsonRequestBehavior = JsonRequestBehavior.AllowGet,
          MaxJsonLength = Int32.MaxValue
      };
  }
  </code></pre>
  
  <p>I want to change this code:</p>
  
  <pre><code>var titleBodytext = from p in v
                      select v[0]["Title"]["BodyText"];
  </code></pre>
  
  <p><code>Title</code> and <code>BodyText</code> are two keys values in my JArray.</p>
  
  <p><img src="https://i.stack.imgur.com/QjkCC.png" alt="enter image description here"></p>
  
  <p>See screenshot of JArray object. In element 0 there are key value elements.</p>