X Tutup
The Wayback Machine - https://web.archive.org/web/20201017055024/https://github.com/json-iterator/go/issues/498
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

Parsing bool failed while json field type is empty string #498

Open
Hareis opened this issue Sep 25, 2020 · 0 comments
Open

Parsing bool failed while json field type is empty string #498

Hareis opened this issue Sep 25, 2020 · 0 comments

Comments

@Hareis
Copy link

@Hareis Hareis commented Sep 25, 2020

I've got a boolean type parsing failed while data is an empty string instead of "true/false" boolean.

--------origin content--------

我有一个字段是bool 类型的,但是前端传进来的json 是空字符串 ,使用原生的json 时能完整的反序列化出来,虽然这个值是默认值,
但是 使用jsoniter 时却抛出了一个错误
image

image

@AllenX2018 AllenX2018 changed the title 反序列化时 空字符串 无法反序列化成功 Parsing bool failed while json field type is empty string Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.
X Tutup