MARC::Moose::Formater::Json - Record formater into a Json representation
version 1.0.46
The resulting JSON string representing a MARC::Moose::Record conforms to the following schema:
L<http://dilettantes.code4lib.org/files/marc-schema.json>
Further details can be found at:
L<http://dilettantes.code4lib.org/blog/2010/09/a-proposal-to-serialize-marc-in-json/>
A boolean value. If true, the resulting JSON string is prettier.
use MARC::Moose::Reader::File::Iso2709; use MARC::Moose::Formater::Json; my $reader = MARC::Moose::Reader::File::Iso2709->new( file => 'marc.iso' ); my $formater = MARC::Moose::Formater::Json->new( pretty => 1); while ( my $record = $reader->read() ) { print $formater->format($record); }
MARC::Moose
MARC::Moose::Formater
MARC::Moose::Parser
Frédéric Demians <f.demians@tamil.fr>
This software is copyright (c) 2022 by Frédéric Demians.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install MARC::Moose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MARC::Moose
CPAN shell
perl -MCPAN -e shell install MARC::Moose
For more information on module installation, please visit the detailed CPAN module installation guide.