Parse int JSON as true only if == 1
Summary:
Previous OCaml implementation treated some bool options
that were passed an integer JSON value >1 as true, so initial Rust port
had to be more conservative, which led to inconsistencies
(since most bool options in OCaml impl were true only if =1).
Now that the OCaml implementation is fixed to consistently cast int to bool
or JSON int-ish values (integers or string containing digits only),
make the Rust implementation equally strict and consistent.
Reviewed By: shiqicao
Differential Revision:
D21171681
fbshipit-source-id:
e4313a914456f093a815dade482709a9027e99b6