title: Get keys from json in python
body: <p>I have an API whose response is json like this:</p>
  
  <pre><code>{
  "a":1,
  "b":2,
  "c":[
       {
       "d":4,
       "e":5,
       "f":{
           "g":6
           }
       }
      ]
  }
  </code></pre>
  
  <p>How can I write a python program which will give me the keys <code>['d','e','g']</code>. What I tried is:</p>
  
  <pre><code>jsonData = request.json() #request is having all the response which i got from api
  c = jsonData['c']
  for i in c.keys():
      key = key + str(i)
  print(key)
  </code></pre>