title: Pretty print JSON dumps
body: <p>I use this code to pretty print a <code>dict</code> into JSON:</p>
  
  <pre><code>import json
  d = {'a': 'blah', 'b': 'foo', 'c': [1,2,3]}
  print json.dumps(d, indent = 2, separators=(',', ': '))
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>{
    "a": "blah",
    "c": [
      1,
      2,
      3
    ],
    "b": "foo"
  }
  </code></pre>
  
  <p>This is a little bit <strong>too much</strong> (newline for each list element!).</p>
  
  <p><strong>Which syntax should I use to have this:</strong></p>
  
  <pre><code>{
    "a": "blah",
    "c": [1, 2, 3],
    "b": "foo"
  }
  </code></pre>
  
  <p><strong>instead?</strong></p>