$) { !$_[0] && UNIVERSAL::isa( $_[0], Regexp::Common::Apache2::Boolean ) } sub TO_JSON { ## JSON does not check that the value is a proper true or false. It stupidly assumes this is a