title: Extract JSON array names C#
body: <p>I'm trying to deserialize this piece of json here with JSON.NET through an API, and I just want to extract the names that represent each array, which are John, Marie and Bob. Is it possible to extract just the names of each array with a foreach or any kind of method? </p>
  
  <p>Here is how I currently have it:</p>
  
  <pre><code>WebRequest request = WebRequest.Create("...API URL...");
  WebResponse response = request.GetResponse();
  Stream dataStream = response.GetResponseStream();
  StreamReader reader = new StreamReader(dataStream);
  
  string responseFromServer = reader.ReadToEnd();
  
  reader.Close();
  response.Close();
  var jss = new JavaScriptSerializer();
  var dict = jss.Deserialize&lt;Dictionary&lt;string, dynamic&gt;&gt;(responseFromServer);
  
  
  foreach (var item in dict["data"])
  {
     string arrayName= Convert.ToString(item["data"]["?array_names?"]);
     Console.WriteLine(arrayName);
  }
  </code></pre>
  
  <p>Data from JSON (responseFromServer)</p>
  
  <pre><code> {"data": {
        "John": {
           "id": 266,
           "title": "Good old john",
           "name": "John Shepard",
           "key": "JS"
        },
        "Marie": {
           "id": 412,
           "title": "Helper Marie",
           "name": "Marie Godfather",
           "key": "MG"
        },
        "Bob": {
           "id": 23,
           "title": "Uncle Bob",
           "name": "Bob Plane",
           "key": "BP"
        }
  }}
  </code></pre>
  
  <p>[EDIT: Added missing {} at start and end, sorry]</p>
  
  <p>Thanks in advance</p>