title: How to iterate through JSON dictonary with Python
body: <p>My code is this</p>
  <pre><code>
      with open('base.json') as f:
          data = json.load(f)
  
      for Object in data[&quot;Objects&quot;][0]:
          print(Object[&quot;Name&quot;])  
  </code></pre>
  <p>Im trying to be able to print</p>
  <pre><code>SellMenu
  BuyMenu
  </code></pre>
  <p>So I can add buttons to specific menus but this code isn't working and it crashes
  My JSON(base.json) is</p>
  <pre><code>{
      &quot;Objects&quot;: [
      {
          &quot;Type&quot;: &quot;Menu&quot;,
          &quot;Path&quot;: &quot;insert_path&quot;,
          &quot;Name&quot;: &quot;SellMenu&quot;,
          &quot;X&quot;: 0,
          &quot;Y&quot;: 0,
          &quot;Width&quot;: 1920,
          &quot;Height&quot;: 1080,
          &quot;Buttons&quot;: [],
          &quot;Text&quot;: []
      },
      {
          &quot;Type&quot;: &quot;Menu&quot;,
          &quot;Path&quot;: &quot;insert_path&quot;,
          &quot;Name&quot;: &quot;BuyMenu&quot;,
          &quot;X&quot;: 0,
          &quot;Y&quot;: 0,
          &quot;Width&quot;: 1920,
          &quot;Height&quot;: 1080,
          &quot;Buttons&quot;: [],
          &quot;Text&quot;: []
      }]
  }
  </code></pre>