title: json.load() function doesn't work- Python
body: <h2><strong>JSON load doesn't work for me whenever I run my code,</strong></h2>
  <hr />
  <p>In this part, I create the code to read the file</p>
  <pre><code>import json
  
  filename = 'eq_1_day_m1.json'
  with open(filename) as f:
      all_eq_data = json.load(f)
  
  readable_file = 'readable_eq_data.json'
  with open(readable_file, 'w') as c:
      json.dump(all_eq_data, c, indent=4
  
  </code></pre>
  <p>Then It gives me so many errors talking about charmap. I think this is because of the maximum capacity. Can I do something about this?</p>
  <pre><code>C:\Users\PC\AppData\Local\Microsoft\WindowsApps\python.exe &quot;C:/Users/PC/PycharmProjects/Learning/Learning Matplotlib/eq_explore_data.py&quot;
  Traceback (most recent call last):
    File &quot;C:\Users\PC\PycharmProjects\Learning\Learning Matplotlib\eq_explore_data.py&quot;, line 5, in &lt;module&gt;
      all_eq_data = json.load(f)
    File &quot;C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\json\__init__.py&quot;, line 293, in load
      return loads(fp.read(),
    File &quot;C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\encodings\cp1252.py&quot;, line 23, in decode
      return codecs.charmap_decode(input,self.errors,decoding_table)[0]
  UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 10292: character maps to &lt;undefined&gt;
  
  Process finished with exit code 1
  </code></pre>
  <p>I have my json file: 'eq_1_day_m1.json' if you are wondering. It's too big for StackOverflow to handle so I didn't add it to the question.</p>