munged output formatting a bit and handled JSON::XS::Boolean (Hat Tip to Ooblick)