NAME

MARC::Moose::Formater::Json - Record formater into a Json representation

VERSION

version 1.0.49

DESCRIPTION

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/>

ATTRIBUTES

pretty

A boolean value. If true, the resulting JSON string is prettier.

SYNOPSYS

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);
}

SEE ALSO

AUTHOR

Frédéric Demians <f.demians@tamil.fr>

COPYRIGHT AND LICENSE

This software is copyright (c) 2024 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.