title: json.dumps need additional "," between entries
body: <p>my json.dumps code:</p>
  
  <pre><code>print json.dumps({'cidr': item, 'name': 'Malware'}, sort_keys=True, indent=4, separators=(', ',    ': '))
  </code></pre>
  
  <p>work fine so far, as it outputs:</p>
  
  <pre><code>    {
      "cidr": "98.131.229.2/32", 
      "name": "Malware"
      }
      {
      "cidr": "98.158.178.231/32", 
      "name": "Malware"
      }
  </code></pre>
  
  <p>I need two additional things</p>
  
  <ul>
  <li>a opening and closing bracket <code>[ ]</code> (first and last line)</li>
  <li>an additional <code>,</code> between the entries</li>
  </ul>
  
  <p>I tried is with a loop, but that brings me the additional , also at the end (just before the closing ]</p>
  
  <p>so, in the end, I need an output like:</p>
  
  <pre><code>[
  {
      "cidr": "98.131.229.2/32", 
      "name": "Malware"
  }
  ,
  {
      "cidr": "98.158.178.231/32", 
      "name": "Malware"
  }
  ]
  </code></pre>
  
  <p>Can I do this with the standard son tools or do I need to run additional stuff?</p>
  
  <p>I'm not working with dictionaries. Full code:</p>
  
  <pre><code>malwareurl = "http://www.malwaredomainlist.com/hostslist/ip.txt"  # URL to TXT file
  
      print "Downloading with urllib2"
      f = urllib2.urlopen(malwareurl)
      result = f.read().split("\r\n")
      ips = [x + "/32" for x in result if x]
  
      for item in ips:
          print json.dumps({'cidr': item, 'name': 'Malware'}, sort_keys=True, indent=4, separators=(', ', ': '))
  </code></pre>