Catmandu::Fix::export_to_string(3pm)

Catmandu::Fix::export_to_string3pm

Convert the value of field using a named exporter

Usage

    export_to_string(my.field,'YAML')
    export_to_string(my.field2,'JSON')
    export_to_string(my.field3,'CSV', 'sep_char' => ';' )

Overview

export_string( PATH, NAME [, EXPORT_OPTIONS ] )

This fix uses the function export_to_string of the package Catmandu, but requires the NAME of the exporter.

It expects a HASH or ARRAY as input. Other values are silently ignored.

PATH
NAME

name of the exporter to use. As usual in Catmandu, one can choose:

* full package name of the exporter (e.g. 'Catmandu::Exporter::JSON')

* short package name of the exporter (e.g. 'JSON')

* name of the exporter as declared in the Catmandu configuration

EXPORT_OPTIONS

extra options for the named exporter

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

Nicolas Franck, "<nicolas.franck at ugent.be>"

From libcatmandu-perl 1.2024-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.