Nov-28-2016, 12:48 AM
No, I'm using Linux, and I tried Python 2 and Python 3.4. Python and JSON should both be platform independent though, so I don't think that's the problem. My best guess at this point is that you actually have an empty file, and you have an editor window open with unsaved changes.
If that's not the case, try running the code
If that's not the case, try running the code
import json with open('schedule.json') as data_file: print("<>".format(data_file.read())) # print out the contents of the file, within <> data_file.seek(0) # restore file state so that the below line might work data = json.load(data_file) print(data)You can also try creating a Git repo or something that we can clone and know is reproducing the problem for you, since describing it over the forum might not be enough in this case.