Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json/decode on empty string should return nil #68

Closed
autumnull opened this issue Jul 19, 2022 · 1 comment
Closed

json/decode on empty string should return nil #68

autumnull opened this issue Jul 19, 2022 · 1 comment

Comments

@autumnull
Copy link
Contributor

json/decode on an empty string currently throws an error:

decode error at position 0: unexpected end of source

I think it should instead return nil.

@bakpakin
Copy link
Member

I disagree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants