package Catmandu::Exporter::Breaker::Parser::json;
use Catmandu::Sane;
use Moo;
use Catmandu::Expander;
use Catmandu::Breaker;
use namespace::clean;
our $VERSION = '0.141';
has tags => (is => 'r
$value)
);
}
1;
}
1;
__END__
=head1 NAME
Catmandu::Exporter::Breaker::Parser::json - default handler
=head1 DESCRIPTION
This is the default L<Catmandu::Breaker> handler.
=cut
'Catmandu::Exporter';
has fields => (is => 'ro');
has handler => (is => 'rw', default => sub {'json'} , coerce => \&_coerce_handler );
sub _coerce_handler {
my ($handler) = @_;
return $handle
reaker format
=head1 SYNOPSIS
# Using the default breaker
$ catmandu convert JSON to Breaker < data.json
# Using a OAI_DC breaker
$ catmandu convert OAI --url http://biblio.ugent.be
r
# Convert the Breaker format by line into JSON
$ catmandu convert Breaker < data.breaker
# Convert the Breaker format by line into JSON using the fields file
$ catmandu convert Bre
YNOPSIS
# From the command line
# Using the default breaker
$ catmandu convert JSON to Breaker < data.json
# Break a OAI-PMH harvest
$ catmandu convert OAI --url http://biblio.ugent.be/oa
data-field><tab><metadata-value><tab><metadatavalue>...
For the default JSON breaker the input format is broken down into JSON-like Paths. E.g.
when give this YAML input:
---
name: John
nter for each record (or the content of the _id field when present).
The second column provides a JSON path to the data (with the array-paths translated to []).
The third column is the field value.
O