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

Bug in boolean deserialization ? #43

Closed
doctormad opened this issue Oct 27, 2011 · 2 comments
Closed

Bug in boolean deserialization ? #43

doctormad opened this issue Oct 27, 2011 · 2 comments

Comments

@doctormad
Copy link

Hi,

I put into the deserializer a string (json_encoded) of a boolean field, it looks like : {"field":false}

As handler I use an object with a boolean field property.

When I submit strings {"field":true} or {"field":"foo"} my object field is set to true but it doesn't seems to work with false, neither with {"field":false} nor {"field":0}, the field is not set.

Any idea will be welcome :)

Btw gz for your work.

@schmittjoh
Copy link
Owner

@doctormad
Copy link
Author

Just spoke too fast, my problem is in the Assert which interpret the false as blank.

chasewoo pushed a commit to royuan/JMSSerializerBundle that referenced this issue Aug 7, 2013
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