---
name: "MARC::File::MiJ"
section: "3pm"
platform: "linux"
package: "libmarc-file-mij-perl"
version: "0.04-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MARC::File::MiJ"
---

# MARC::File::MiJ(3pm)

Read newline-delimited marc-in-json files

## NAME

MARC::File::MiJ - Read newline-delimited marc-in-json files

## VERSION

Version 0.04

## SYNOPSIS

Use by itself or with MARC::Batch

```
    use MARC::Batch;
    use MARC::File::MiJ;
    my $reader = new MARC::Batch('MiJ', $jsonfilename);
    while (my $r = $batch->next) { ... }
    # or, use it without MARC::Batch
    my $reader = MARC::File::MiJ->in($jsonfilename);
```

## DESCRIPTION

A subclass of MARC::File for reading MARC records encoded as 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/.

## SUBROUTINES/METHODS

### \_next()

The underlying "next" that pulls the next line from the filehandle;

### decode(json)

### encode

## AUTHOR

Bill Dueber, `"<dueberb at umich.edu>"`

## BUGS

Please report any bugs or feature requests to `"bug-MARC-File-MiJ at rt.cpan.org"`, or through the web interface at \<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MARC-File-MiJ\>.  I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

## SUPPORT

You can find documentation for this module with the perldoc command.

```
    perldoc MARC::File::MiJ
```

You can also look for information at:

- •

  RT: CPAN's request tracker (report bugs here)

  \<http://rt.cpan.org/NoAuth/Bugs.html?Dist=MARC-File-MiJ\>

- •

  AnnoCPAN: Annotated CPAN documentation

  \<http://annocpan.org/dist/MARC-File-MiJ\>

- •

  CPAN Ratings

  \<http://cpanratings.perl.org/d/MARC-File-MiJ\>

- •

  Search CPAN

  \<http://search.cpan.org/dist/MARC-File-MiJ/\>

## ACKNOWLEDGEMENTS

## LICENSE AND COPYRIGHT

Copyright 2013 Bill Dueber.

This software is free software and may be distributed under the same terms as Perl itself.
