title: Python: Extract JSON keys
body: <p>I have the following JSON string:</p>
  
  <pre><code>jsonString = {'result': {'animals': {'Dogs': True, 'Cats': True}}
  </code></pre>
  
  <p>So in Python I know I can do:</p>
  
  <pre><code>animals= jsonString['result']['animals']
  </code></pre>
  
  <p>To get the value of 'Dogs' or 'Cats'. And:</p>
  
  <pre><code>animals= jsonString['result']['animals']['Dogs']
  </code></pre>
  
  <p>To get the value of 'Dogs' or 'Cats'.</p>
  
  <p>However, when I try <code>print (jsonString['result']['animals'])</code> I get:</p>
  
  <pre><code>{'Dogs': True, 'Cats': True}
  </code></pre>
  
  <p>Question</p>
  
  <p>How do I get the all the animals, without values, dynamically?</p>
  
  <p>Thanks. </p>