title: How do I use simplejson to decode JSON responses to python objects?
body: <p>JSON serialization Python using simpleJSON</p>
  <p>How do I create an object so that we can optimize the serialization of  the object</p>
  <p>I'm using simpleJSON</p>
  <blockquote>
  <p>1,2 are fixed variables</p>
  <p>3 is a fixed dict of category and score</p>
  <p>4 is an array of dicts that are fixed in length (4), the array is a length specificed at run-time.</p>
  </blockquote>
  <p>The process needs to be as fast as possible, so I'm not sure about the best solution.</p>
  <pre><code>    {
      &quot;always-include&quot;: true,
      &quot;geo&quot;: null,
      &quot;category-score&quot; : [
          {
              &quot;Arts-Entertainment&quot;: 0.72,
              &quot;Business&quot;: 0.03,
              &quot;Computers-Internet&quot;: 0.08,
              &quot;Gaming&quot;: 0.02,
              &quot;Health&quot;: 0.02,
              
          } 
      ],
      &quot;discovered-entities&quot; : [
          {
              'relevance': '0.410652',
              'count': '2',
              'type': 'TelevisionStation',
              'text': 'Fox News' 
          },
          {
              'relevance': '0.396494',
              'count': '2',
              'type': 'Organization',
              'text': 'NBA' 
          } 
      ] 
  ],
  
  }
  </code></pre>