
Data::dump::oneline dumps data structures as single-line strings. it uses data::dmp.
json should also encode to a single-line string, but some data structures (cyclical, contains globs or other special perl data) cannot be encoded out of the box to json.
data::dumper::oneline strives to do the same for data::dumper.