ERROR: Parsing JSON


#1

The script in the Parsing JSON module gives an error when run:

Traceback (most recent call last):
File "python", line 4, in
IOError: [Errno 2] No such file or directory: 'pets.txt'

The module doesn't require the user to modify the code in any way, so it's definitely not something I did. I just clicked "Save & Submit Code", then the error came up, as well as "Way to go!" and the "Start Next Lesson" button.

True, this doesn't really affect the user's understanding of the information in the module, but I thought this is something Admin might want to know about :slight_smile:


#2

@bravegrape,
You can grab the owner attribute of the pets.txt file
by clicking in the pets.txt-tab
and then add a space character after the last closing-curly-bracket-}


#3

Try this: JSON Formatter https://jsonformatter-online.com


#4

You can try this website:
https://bestprogrammingtoolkit.com