Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

The json.load, JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Asked by Ishida Sugiyama Apr 16, 2021 5.7K views 1 answer
Share

About this question

I am reading in a json.bz2 file.

This is the code

with open(full_filename, 'r', encoding='utf-8', errors='ignore') as the_file:    

    data = json.load(the_file)

Error:

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I tried searching on google for solutions, but none of them are working.

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.