title: Python: Saving API result into json file?
body: <p>this is a preview of the data that im able to access via API using python 3.</p>
  
  <pre><code>   [{'DBNOs': 2,
    'assists': 0,
    'boosts': 0,
    'damageDealt': 129.820038,
    'deathType': 'byplayer',
    'headshotKills': 0,
    'heals': 0,
    'killPlace': 35,
    'killPoints': 1295,
    'killPointsDelta': 3.15819788,
    'killStreaks': 0,
    'kills': 1,
    'lastKillPoints': 0,
    'lastWinPoints': 0,
    'longestKill': 3,
    'mostDamage': 0,
    'name': 'Esskedit',
    'playerId': 'account.7a54835609584b9c943b213345ea7ffb',
    'revives': 1,
    'rideDistance': 2023.24707,
    'roadKills': 0,
    'teamKills': 1,
    'timeSurvived': 655,
    'vehicleDestroys': 0,
    'walkDistance': 1113.72375,
    'weaponsAcquired': 0,
    'winPlace': 17,
    'winPoints': 1281,
    'winPointsDelta': -6.71400356}]
  </code></pre>
  
  <p>I was able to dump it and make it into a json object using json.dumps(variablename), but how do i save it as a json file?</p>
  
  <p>Thank you </p>