title: How can I get a list of keys from Json.NET?
body: <p>I'm using C# and Json.NET. If I have a JObject, I want a list of the keys within the object, similar to how <code>object.Keys()</code> returns the keys within the object. This seems like it'd be obvious, but I'm having a rough time finding a way to do this.</p>
  
  <p><strong>Edit:</strong>
  I'm traversing through the object, and I want to spit out all the keys in the object as I go through. I realize that this example will result in seeing the same key multiple times, and that's OK for my needs.</p>
  
  <pre><code>public void SomeMethod(JObject parent) {
      foreach (JObject child in parent.Children()) {
          if (child.HasValues) {
          //
          // Code to get the keys here
          //
          SomeMethod(child);
          }
      }
  }
  </code></pre>