title: Remove all last commas between brackets
body: <p>I'm trying to format the following as JSON (in Python):</p>
  
  <pre><code>{
     "sessionTimeout":"3600.0",
     "serverVersion":"LK_LK-NL-7_188-176-419",
     "worldDawn":"2018-10-09 06:00:00 Etc/GMT",
     "Data":{
        "Player":[
           {
              "nick":"Player11226400",
              "points":"44",
              "alliancePermission":"0",
              "isOnVacation":"false",
              "id":"5048",
              "rank":"561",
              "entityName":"Player",
           },
           {
              "nick":"Player11230580",
              "points":"15",
              "alliancePermission":"0",
              "isOnVacation":"false",
              "id":"5215",
              "rank":"2081",
              "entityName":"Player",
           },
           {
              "nick":"Player11291581",
              "points":"15",
              "alliancePermission":"0",
              "isOnVacation":"false",
              "id":"5942",
              "rank":"2081",
              "entityName":"Player",
           }
        ]
     }
  }
  </code></pre>
  
  <p>Every JSON validator of course tells me that this is not valid JSON because of the trailing "," before each }, so I want to remove that comma. I tried removing them with .replace('"Player",", '"Player"') but I don't consider this as a good solution. This because I also have trailing "," in for example a Alliance or Habitat string ("Habitat", &amp; "Alliance",) </p>
  
  <p>Could anyone help me with finding a better solution to this problem? </p>