in reply to Dumping compact YAML

JSON::XS is, in my view, the best serialization module we've got. Unless you're serializing objects or code or something that JSON can't cover, I'd pick it over YAML. I use YAML for its human readability and ability to dump regular expressions and other special structures. JSON(::XS) is the best choice for plain data structures.