Skip to content

报错json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)的解决方法 #10

Open
@yufin

Description

把原来的json_loads function改为如下即可。
def json_loads(s):
if s.decode('utf-8') == '':
return {}
if isPython3:
return json.loads(s.decode('utf-8'))
return json.loads(s)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions