::MiJ;
use ex::monkeypatched;
use JSON;
use 5.006;
use strict;
use warnings FATAL => 'all';
=head1 NAME
MARC::Record::MiJ - Convert MARC::Record to/from marc-in-json structure
=head1 VERSION
Versi
my $str = get_marc_in_json_from_somewhere;
# The most common use will be to use methods monkeypatched into MARC::Record
my $r = MARC::Record->new_from_mij($str);
my $json = $r->to_mij;
# Yo
u can also work with the underlying hash/array structure if you're dealing with
# json serialization/deserialization on your own
my $mij_structure = $r->to_mij_structure;
my $r = MARC::Record->
ord::MiJ;
use base qw(MARC::File);
=head1 NAME
MARC::File::MiJ - Read newline-delimited marc-in-json files
=head1 VERSION
Version 0.04
=cut
our $VERSION = '0.04';
=head1 SYNOPSIS
Use by itsel
eader = new MARC::Batch('MiJ', $jsonfilename);
while (my $r = $batch->next) { ... }
# or, use it without MARC::Batch
my $reader = MARC::File::MiJ->in($jsonfilename);
=head1 DESCRIPTI
s newline-delimited marc-in-json,
as supported by pymarc/ruby-marc/marc4j and
described at http://dilettantes.code4lib.org/blog/2010/09/a-proposal-to-serialize-marc-in-json/.
=head1 SUBROUTINES/MET