title: JSON-like object in Python
body: <p>I'm working with quite a bit of data in Python.  I'm currently using a lot of different arrays but I would like to use something similar to JSON format to make it easier.</p>
  
  <p>something like:</p>
  
  <pre><code>metrics {
    .metric_name {
      .period {
        A: 10
        B: 20
      }
    }
  }
  </code></pre>
  
  <p>so that I could call metrics.metric_name.A or whatever instead of using a lot of different multi-dim arrays.</p>
  
  <p>Does anything like this exist in Python?  Can I use dictionaries inside of dictionaries?</p>