alize
print $mods->as_json(pretty => 1);
print $mods->as_xml;
# Deserialize
my $mods = MODS::Record->from_xml(IO::File->new('mods.xml'));
my $mods = MODS::Record->from_json(IO::File->new('mods.j
:File->new('mods.xml'), sub {
my $mods = shift;
...
});
my $count = MODS::Record->from_json(IO::File->new('mods.js'), sub {
my $mods = shift;
...
});
=head1 DESCRIPTION
This modu
$callback])
Parse an XML string or IO::Handle into a MODS::Record. This method return the parsed JSON.
If a callback function is provided then for each MODS element in the XML stream the callback wi