We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When decoding <<"0">> or <<"-0">> with the new json module, the integer/1 decoder callback is never called.
<<"0">>
<<"-0">>
json
integer/1
To Reproduce
json:decode(<<"0">>, ok, #{integer => fun(_) -> works end}). %=> {0,ok,<<>>} json:decode(<<"1">>, ok, #{integer => fun(_) -> works end}). %=> {works,ok,<<>>}
Expected behavior
json:decode(<<"0">>, ok, #{integer => fun(_) -> works end}). %=> {works,ok,<<>>}
Affected versions
@michalmuskala
The text was updated successfully, but these errors were encountered:
Good catch! Fix in #8581
Sorry, something went wrong.
Fix is merged.
dgud
Successfully merging a pull request may close this issue.
Describe the bug
When decoding
<<"0">>
or<<"-0">>
with the newjson
module, theinteger/1
decoder callback is never called.To Reproduce
Expected behavior
Affected versions
@michalmuskala
The text was updated successfully, but these errors were encountered: