title: Getting the child key names of a JSON object
body: <p>I need to get the xpath of json (ie) basically i need to get the keys of the jsons along with its xpath.</p>
  
  <pre><code>var json='"glossary": {
      "title": "example glossary",
      "GlossDiv": {
          "title": "S",
          "GlossList": {
              "GlossEntry": {
                  "ID": "SGML",
                  "SortAs": "SGML",
                  "GlossTerm": "Standard Generalized Markup Language",
                  "Acronym": "SGML",
                  "Abbrev": "ISO 8879:1986",
                  "GlossDef": {
                      "para": "A meta-markup language, used to create markup languages such as DocBook.",
                      "GlossSeeAlso": ["GML",
                      "XML"]
                  },
                  "GlossSee": "markup"
              }
          }
      }
  }
  
  Object.keys(json)
  </code></pre>
  
  <p>The above code returns the key of the parent structure as below.</p>
  
  <pre><code>[ 'glossary' ]
  </code></pre>
  
  <p>I need all the keys along with the path.I am stuck here.Any solution will be much helpful</p>