Boolean no error passing a String value
Open
bug
- Dominant language
- Java
- Stars
- 24.2k
- Forks
- 4.5k
- Avg merge
- 6d 4h
- Merged PRs (30d)
- 12
Description
```
passing a number to a Boolean I see the error: Expected a boolean but was
NUMBER (OK), passing a string to a Boolean there is no error and is assigned to
the Boolean false (NOT OK)
{"isPRA":10} generate the error (OK)
{"isPRA":"ABC"} no error (NOT OK)
In the example isPRA is a Boolean field and I used gson 2.3
```
Original issue reported on code.google.com by `dmclcu57...@gmail.com` on 14 Oct 2014 at 9:06
Contributor guide
Assessment
This issue has not been assessed yet.