title: how to remove a back slash from a JSON file
body: <p>I want to create a json file like this:</p>
  
  <pre><code>{"946705035":4,"946706692":4 ...}
  </code></pre>
  
  <p>I am taking a column that only contains Unix Timestamp and group them.</p>
  
  <pre><code>result = data['Last_Modified_Date_unixtimestamp_no_time'].value_counts()
  
  In [21]: result.head()
  Out[21]: 
  1508284800    131
  1508716800    106
  1508371200    101
  1508457600     99
  1508630400     96
  Name: Last_Modified_Date_unixtimestamp_no_time, dtype: int64
  </code></pre>
  
  <p>transform to a dict</p>
  
  <pre><code>result = result.to_dict()
  result
  '''
  {1507161600: 1,
   1507852800: 1,
   1508198400: 64,
   1508284800: 131,
   ...
   1535155200: 1,
   1535241600: 1}
  '''
  
  import json
  result = json.dumps(result)
  
  with open('result.json', 'w') as fp:
      json.dump(result, fp, indent=4)
  </code></pre>
  
  <p>result 
  <a href="https://i.stack.imgur.com/R72vy.png" rel="noreferrer"><img src="https://i.stack.imgur.com/R72vy.png" alt="enter image description here"></a>
  this is the data structure that I expected </p>
  
  <pre><code>{"946705035":4,"946706692":4}
  </code></pre>