Coerce JSON::Boolean objects to 0/1