Get the name of a JObject in Json.Net
I have a JObject equal to: "Info": { "View":"A", "Product":"B", "Offer":"Offer1", "Demo":"body {background-color:red;} #box {border:dotted 50px red;}", "Log":false } How can I return the name of the object, "Info"? I am currently using the Path property like so: jObject.Name = jObject.Path.Substring(jObject.Path.jObject('.') + 1); Is there a better way to do this? In JSON, objects themselves do not have names. An object is just a container for a collection of name-value pairs, beginning and ending with curly braces. So what you have above is a fragment of a larger body of JSON. There must be