App-EscapeUtils

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    information.

    Return value: (str)

  js_unescape
    Usage:

     js_unescape(%args) -> [status, msg, payload, meta]

    Interpret lines of input (in standard input or arguments) as JSON
    strings and return the decoded value.

    This function is not exported.

    Arguments ('*' denotes required arguments):

    *   strings* => *array[str]*

    Returns an enveloped result (an array).

    First element (status) is an integer containing HTTP status code (200

lib/App/EscapeUtils.pm  view on Meta::CPAN

            return undef;
        }
    };

    return [200, "OK", $cb];
}

$SPEC{js_unescape} = {
    v => 1.1,
    summary => 'Interpret lines of input (in standard input or arguments) as '.
        'JSON strings and return the decoded value',
    args => {
        %arg_strings,
    },
    result => {
        schema => 'str*',
        stream => 1,
    },
};
sub js_unescape {
    require String::JS;

lib/App/EscapeUtils.pm  view on Meta::CPAN

Return value:  (str)



=head2 js_unescape

Usage:

 js_unescape(%args) -> [status, msg, payload, meta]

Interpret lines of input (in standard input or arguments) as JSON strings and return the decoded value.

This function is not exported.

Arguments ('*' denotes required arguments):

=over 4

=item * B<strings>* => I<array[str]>

=back

script/js-unescape  view on Meta::CPAN


my $cmdline = Perinci::CmdLine::Any->new(
    url => "/App/EscapeUtils/js_unescape",
    program_name => "js-unescape",
    read_config => 0,
    read_env => 0,
);

$cmdline->run;

# ABSTRACT: Interpret lines of input (in standard input or arguments) as JSON strings and return the decoded value
# PODNAME: js-unescape

__END__

=pod

=encoding UTF-8

=head1 NAME

js-unescape - Interpret lines of input (in standard input or arguments) as JSON strings and return the decoded value

=head1 VERSION

This document describes version 0.002 of js-unescape (from Perl distribution App-EscapeUtils), released on 2019-12-15.

=head1 SYNOPSIS

Usage:

 % js-unescape [options] <string> ...



( run in 0.842 second using v1.01-cache-2.11-cpan-26ccb49234f )