DOKK / manpages / debian 12 / libcatmandu-marc-perl / Catmandu::Fix::marc_in_json.3pm.en
Catmandu::Fix::marc_in_json(3pm) User Contributed Perl Documentation Catmandu::Fix::marc_in_json(3pm)

Catmandu::Fix::marc_in_json - transform a Catmandu MARC record into MARC-in-JSON

   # Transform a Catmandu MARC 'record' into a MARC-in-JSON record
   marc_in_json()
   # Reverse, transform a MARC-in-JSON record into a Catmandu MARC record
   marc_in_json(reverse:1)

Convert the MARC record into MARC-in-JSON format

Convert a Catmandu MARC record into the MARC-in-JSON format.

Convert a MARC-in-JSON record back into the Catmandu MARC format.

This Fix can be used inline in a Perl script:

    use Catmandu::Fix::marc_in_json as => 'marc_in_json';
    my $data = { record => [...] };
    $data = marc_in_json($data);

Catmandu::Fix

2022-09-27 perl v5.34.0