title: Getting Exception while accessing value of JToken - Cannot access child value on Newtonsoft.Json.Linq.JValue
body: <p>I am working on a test case to emulate my C# method. I am unable to access the DocumentID property of the JToken using <strong>token["DocumentID"]</strong>. I am getting System.InvalidOperationException - "Cannot access child value on Newtonsoft.Json.Linq.JValue".</p>
  
  <pre><code>string response = "[\r\n  \"{ \\\"DocumentID\\\": \\\"fakeGuid1\\\",\\\"documentNotes\\\": \\\"TestNotes1\\\"}\"\r\n]";
  //Response has escape charaters as  this is being returned by a mockMethod which is supposed to return JSon.ToString().
  
  string[] fakeGuidForExecutiveSummary = new string[]{"fakeGuid1"};
  string fakeResponseFromExecutiveSummaryProxy = "{ \"DocumentID\": \"fakeGuid1\",\"documentNotes\": \"TestNotes1\"}";
  
  JArray jsonResponse = JArray.Parse(response);
  //Value of jsonResponse from Debugger - {[  "{ \"DocumentID\": "fakeGuid1\",\"documentNotes\": \"TestNotes1\"}" ]}
  
  JToken token = jsonResponse[0];
  //Value of token from Debugger - { "DocumentID": fakeGuid1","documentNotes": "TestNotes1"}
  Assert.AreEqual(fakeGuidForExecutiveSummary[0], token["DocumentID"]);
  </code></pre>