Nov-28-2016, 12:04 AM
How are you running your code? I can't reproduce the problem. That said, your last line can be safely removed; the file is closed with the with block automatically.
Python 3.5.2 & json on win 10
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Python Split json into separate json based on node value | CzarR | 1 | 5,832 |
Jul-08-2022, 07:55 PM Last Post: Larz60+ |
|
difficulties to chage json data structure using json module in python | Sibdar | 1 | 2,123 |
Apr-03-2020, 06:47 PM Last Post: micseydel |