Catmandu::Importer::Null(3) Null importer used for testing purposes

SYNOPSIS


# On the command line
catmandu convert Null --fix 'add_field(foo,bar)'
# creates { "foo": "bar" }
# In perl
use Catmandu::Importer::Null;
my $importer = Catmandu::Importer::Null->new();
my $n = $importer->each(sub {
my $hashref = $_[0];
# ...
});

DESCRIPTION

The Null importer generated one empty record and exists. This importer can be used to test fix functions, generating a single record.

METHODS

Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.