Cannot be deserialized into an object with bool fields (is_verified and has_issues respectively), instead, it throws "Invalid cast" exception without any explanation.
I would like it to be less strict concerning such issues and convert zero to false and non-zero values to true if a target field has the bool type.
This data:
Cannot be deserialized into an object with
bool
fields (is_verified
andhas_issues
respectively), instead, it throws "Invalid cast" exception without any explanation.I would like it to be less strict concerning such issues and convert zero to
false
and non-zero values totrue
if a target field has thebool
type.