errors with json.loads

john polo jpolo at mail.usf.edu
Thu Sep 21 12:24:16 EDT 2017


On 9/20/2017 6:40 PM, Dennis Lee Bieber wrote:
> On Wed, 20 Sep 2017 17:13:41 -0500, john polo <jpolo at mail.usf.edu>
> declaimed the following:
>
>
>> and the example code for reading the file is:
>>
>>>>> file = open('books.json','r')
> 	What encoding is the file? I did a cut&paste from your post into a
> file, and the contents (Python 2.7) failed with
Dennis,
I typed it into notepad++ and saved as .json. On the bottom of the 
notepad++ window it says:
Windows (CR LF) UTF-8

I think that answers your question?

Thanks,
John

-- 
"Ask a man to be quiet,
and he'll be silent for a moment.
Feed a man to a red dragon
and he'll be silent for a lifetime."
-Anne Isabella Thackeray Ritchie




More information about the Python-list mailing list