json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) error.

Asked 2 years ago, Updated 2 years ago, 38 views

import json, pprint a = json.load("list.json") when entered

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) error.

How do we solve this?

json

2022-09-21 11:51

1 Answers

This is because list.json is not a valid json string.

Put up the list.json.


2022-09-21 11:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.