title: Get the name of a JObject in Json.Net
body: <p>I have a <code>JObject</code> equal to:</p>
  
  <pre><code>"Info":
  {
      "View":"A",
      "Product":"B",
      "Offer":"Offer1",
      "Demo":"body {background-color:red;} #box {border:dotted 50px red;}",
      "Log":false
  }
  </code></pre>
  
  <p>How can I return the name of the object, "Info"?</p>
  
  <p>I am currently using the <code>Path</code> property like so:</p>
  
  <pre><code>jObject.Name = jObject.Path.Substring(jObject.Path.jObject('.') + 1);
  </code></pre>
  
  <p>Is there a better way to do this?</p>