Group
Extension

Matches 35358

Catmandu-MARC ( H/HO/HOCHSTEN/Catmandu-MARC-1.33.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-MARC/lib/Catmandu/Fix/marc_append.pm ( view source; MetaCPAN )
bfield.
This value can be a literal or reference an existing field in the record using the
dollar JSON_PATH syntax.

=head1 INLINE

This Fix can be used inline in a Perl script:

    use Catmandu::Fix
Net-AMQP-RabbitMQ ( M/MS/MSTEMLE/Net-AMQP-RabbitMQ-2.40014.tar.gz, MSTEMLE, 2024; MetaCPAN )
Net-AMQP-RabbitMQ/RabbitMQ.xs ( view source; MetaCPAN )
bitMQ;

#define AMQP_STATUS_UNKNOWN_TYPE 0x500

#ifdef USE_LONG_DOUBLE
    /* stolen from Cpanel::JSON::XS
     * so we don't mess up double => long double for perls with -Duselongdouble */
#if define
Catmandu-MARC ( H/HO/HOCHSTEN/Catmandu-MARC-1.33.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-MARC/lib/Catmandu/Fix/marc_set.pm ( view source; MetaCPAN )
 value. This value can be a literal or
reference an existing field in the record using the dollar JSON_PATH syntax.

=head1 INLINE

This Fix can be used inline in a Perl script:

    use Catmandu::Fix
Mojo-Leds ( E/EB/EBRUNI/Mojo-Leds-1.18.tar.gz, EBRUNI, 2024; MetaCPAN )
Mojo-Leds/lib/Mojo/Leds/Plugin/CommonRoutes.pm ( view source; MetaCPAN )
tes;

    $r->get('/version')->to(
        cb => sub {
            shift->render(
                json => {
                    class   => $class,
                    version => $version
             
tus')->to(
        cb => sub {
            my $s = shift;
            $s->render(
                json => {
                    app_name => $app_name,
                    server   => {
               
 };
        return $rows;
    };

    my $root_with_format =
      $r->get( '/' => [ format => [ 'json', 'html', 'txt' ] ] );

    $root_with_format->get( '/routes/:verbose' => { verbose => '' } )->to
Catmandu-MARC ( H/HO/HOCHSTEN/Catmandu-MARC-1.33.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-MARC/lib/Catmandu/Fix/marc_cut.pm ( view source; MetaCPAN )
he MARC record

=head1 METHODS

=head2 marc_cut(MARC_PATH, JSON_PATH, [equals: REGEX])

Cut this MARC fields referred by a MARC_PATH to a JSON_PATH. hen an
C<equals> value has been provided, then only
 the MARC_PATHs with a value
equal to C<equals> will be cut to JSON_PATH. When the MARC_PATH points
to a subfield, then the subfield value need to match C<equals>. When the
MARC_PATH points multiple s
all the 300 fields which have subfield c equal to 'ABC'
    marc_cut(300c,tmp,equals:"^ABC")

The JSON_PATH C<tmp> will contain an array with one item per field that was cut.
Each item is a hash conta
Akamai-PropertyFetcher ( S/SH/SHINGO/Akamai-PropertyFetcher-0.01.tar.gz, SHINGO, 2024; MetaCPAN )
Akamai-PropertyFetcher/lib/Akamai/PropertyFetcher.pm ( view source; MetaCPAN )
package Akamai::PropertyFetcher;

use strict;
use warnings;
use Akamai::Edgegrid;
use JSON;
use File::Spec;
use File::Path 'make_path';
use Parallel::ForkManager;
use Carp;

our $VERSION = '0.01';

su
 " . $contracts_resp->status_line unless $contracts_resp->is_success;
my $contracts_data = decode_json($contracts_resp->decoded_content);
my @contract_ids = map { $_->{contractId} } @{ $contracts_data
group ID: " . $groups_resp->status_line unless $groups_resp->is_success;
my $groups_data = decode_json($groups_resp->decoded_content);
my @group_ids = map { $_->{groupId} } @{ $groups_data->{groups}->
Catmandu-MARC ( H/HO/HOCHSTEN/Catmandu-MARC-1.33.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-MARC/lib/Catmandu/Exporter/MARC.pm ( view source; MetaCPAN )
r MARCMaker/MARCBreaker records
  MiJ: L<Catmandu::Exporter::MARC::MiJ> (MARC in JSON) - an export for the MARC-in-JSON format
  XML: L<Catmandu::Exporter::MARC::XML> - an exporter for the MARC XML fo
Catmandu-MARC ( H/HO/HOCHSTEN/Catmandu-MARC-1.33.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-MARC/lib/Catmandu/Fix/marc_map.pm ( view source; MetaCPAN )
ator-2 is 0
    marc_map('245[1,0]a','title')

=head1 DESCRIPTION

Copy data from a MARC field to JSON path.

This module implements a small subset of the L<MARCspec|http://marcspec.github.io/MARCspec
rc_spec>

=head1 METHODS

=head2 marc_map(MARC_PATH, JSON_PATH, OPT:VAL, OPT2:VAL,...)

Copy the value(s) of the data found at a MARC_PATH to a JSON_PATH.

The MARC_PATH can point to a MARC field. For
p('245ca',title, pluck:1)

=head2 value: Str

Don't write the value of the MARC (sub)field to the JSON_PATH but the specified
string value.

    # has_024_a will contain the value 'Y' if the MARC fiel
Catmandu-MARC ( H/HO/HOCHSTEN/Catmandu-MARC-1.33.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-MARC/lib/Catmandu/MARC.pm ( view source; MetaCPAN )
record => $data } );
        $exporter->commit;

        return $xml;
    }
}

sub marc_record_to_json {
    my ( $self, $data, %opts ) = @_;

    if ( my $marc = delete $data->{'record'} ) {
        
 => \@sf, ind1 => $ind1, ind2 => $ind2 } };
            }
        }
    }

    $data;
}

sub marc_json_to_record {
    my ( $self, $data, %opts ) = @_;

    my $record = [];

    if ( Catmandu::Util::
];
    my $data       = $_[1];
    my $json_path  = $_[2];
    my $marc_path  = $_[3];
    my $marc_value = $_[4];

    my $value = Catmandu::Util::data_at( $json_path, $data );

    return $data
    
Regru-API ( O/OL/OLEG/Regru-API-0.053.tar.gz, OLEG, 2024; MetaCPAN )
Regru-API/lib/Regru/API.pm ( view source; MetaCPAN )
access to the REG.API v2 provided by REG.RU LLC. This is a JSON-driven implementation.
Input/output request data will transforms from/to JSON transparently.

=head2 Rate limiting

Rate limiting in ver
Catmandu-MARC ( H/HO/HOCHSTEN/Catmandu-MARC-1.33.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-MARC/lib/Catmandu/Fix/marc_spec.pm ( view source; MetaCPAN )
b.io/MARCspec/>
for documentation on the path syntax.

=head1 METHODS

=head2 marc_spec(MARCspec, JSON_PATH, OPT:VAL, OPT2:VAL,...)

First parameter must be a string, following the syntax of
L<MARCspe
Regru-API ( O/OL/OLEG/Regru-API-0.053.tar.gz, OLEG, 2024; MetaCPAN )
Regru-API/lib/Regru/API/Role/Client.pm ( view source; MetaCPAN )
lf->username,
        password      => $self->password,
        output_format => 'json',
        input_format  => 'json',
    );

    $post_params{lang}          = $self->lang           if $self->has_
 if $self->debug;

    my $json = $self->serializer->encode( \%params );

    my $response = $self->useragent->post(
        $url,
        [ %post_params, input_data => $json ]
    );

    return Regr
Mojo-Leds ( E/EB/EBRUNI/Mojo-Leds-1.18.tar.gz, EBRUNI, 2024; MetaCPAN )
Mojo-Leds/lib/Mojolicious/Command/Author/generate/leds_app.pm ( view source; MetaCPAN )
lcome to Mojo::Leds framework based on Mojolicious!' );
    $c->SUPER::render_html;
}

sub render_json {
    my $c = shift;
}

1;

@@ static
<!DOCTYPE html>
<html>
  <head>
    <title>Welcome to Mojo:
Catmandu-MARC ( H/HO/HOCHSTEN/Catmandu-MARC-1.33.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-MARC/lib/Catmandu/Fix/marc_paste.pm ( view source; MetaCPAN )
L<Catmandu::Fix::marc_struc> back at the end of
a MARC record.

=head1 METHODS

=head2 marc_paste(JSON_PATH, [at: MARC_PATH , [equals: REGEX]])

Paste a MARC struct PATH back in the MARC record. By de
.

The C<equals> parameter requires an C<at> parameter. When both are provided, then
the value of JSON_PATH will only be pasted if the string value of the MARC_PATH
in C<at> matches the regular expres
CheerLights-API ( N/NO/NOTHANS/CheerLights-API-1.00.tar.gz, NOTHANS, 2024; MetaCPAN )
CheerLights-API/CheerLights/API.pm ( view source; MetaCPAN )
package CheerLights::API;

use strict;
use warnings;
use LWP::UserAgent;
use JSON;
use Exporter 'import';

our @EXPORT_OK = qw(
    get_current_color
    get_current_hex
    get_current_col
1417/feed.json";

sub get_current_color {
    my $url = "$CHEERLIGHTS_FEED_URL?results=1";
    my $response = _fetch_url($url);
    return unless $response;

    my $data = decode_json($respons
nt";
    my $response = _fetch_url($url);
    return unless $response;

    my $data = decode_json($response);
    my @feeds = @{$data->{feeds}};
    my @history;

    foreach my $entry (@feed
Catmandu-MARC ( H/HO/HOCHSTEN/Catmandu-MARC-1.33.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-MARC/lib/Catmandu/Fix/marc_add.pm ( view source; MetaCPAN )
dded.

By default literal values will be added. To point to an existing value in
a record use the JSON_PATH syntax with a dollar '$.' added in front.

=head1 INLINE

This Fix can be used inline in a P
Regru-API ( O/OL/OLEG/Regru-API-0.053.tar.gz, OLEG, 2024; MetaCPAN )
Regru-API/lib/Regru/API/Role/Serializer.pm ( view source; MetaCPAN )
izer;

# ABSTRACT: something that can (de)serialize

use strict;
use warnings;
use Moo::Role;
use JSON;
use Carp;
use namespace::autoclean;

our $VERSION = '0.053'; # VERSION
our $AUTHORITY = 'cpan:OL
 => (
    is      => 'rw',
    isa     => sub {
        croak "$_[0] is not a JSON instance"    unless ref($_[0]) =~ m/JSON/;
        croak "$_[0] can not decode"            unless $_[0]->can('decode'
not encode"            unless $_[0]->can('encode');
    },
    lazy    => 1,
    default => sub { JSON->new->utf8 },
);

1;  # End of Regru::API::Role::Serializer

__END__

=pod

=encoding UTF-8

=hea
Catmandu-MARC ( H/HO/HOCHSTEN/Catmandu-MARC-1.33.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-MARC/lib/Catmandu/Fix/marc_copy.pm ( view source; MetaCPAN )
py(650, subjects)

=head1 DESCRIPTION

Copy MARC data referred by MARC_TAG in a structured way to JSON path.

In contrast to L<Catmandu::Fix::marc_map> and L<Catmandu::Fix::marc_spec>
marc_copy will n
a structure.

=head1 METHODS

=head2 marc_copy(MARC_PATH, JSON_PATH, [equals: REGEX])

Copy this MARC fields referred by a MARC_PATH to a JSON_PATH. When an
C<equals> value has been provided, then onl
y the MARC_PATHs with a value
equal to C<equals> will be copied to JSON_PATH. When the MARC_PATH points
to a subfield, then the subfield value need to match C<equals>. When the
MARC_PATH points multip
Mojo-Leds ( E/EB/EBRUNI/Mojo-Leds-1.18.tar.gz, EBRUNI, 2024; MetaCPAN )
Mojo-Leds/lib/Mojo/Leds/Rest/MongoDB.pm ( view source; MetaCPAN )

        return $c->_raise_error( 'Element duplicated', 409 );
    }
    return $rec;
}

sub _rec2json() {
    my $c   = shift;
    my $rec = shift || $c->stash( $c->_class_name . '::record' );
    re
}

    return $recs;
}

sub _listupdate {
    my $c    = shift;
    my $json = shift;

    my @recs;
    foreach my $item (@$json) {
        if ( exists $item->{ $c->pk } ) {
            $c->app->log-
MFab-Plugins-Datadog ( D/DD/DDROWN/MFab-Plugins-Datadog-1.0.tar.gz, DDROWN, 2024; MetaCPAN )
MFab-Plugins-Datadog/lib/MFab/Plugins/Datadog.pm ( view source; MetaCPAN )
{ afterBuildTxHook($tx, $app, $args) });
	}
}

=head2 datadogId()

Generate a 64 bit integer that JSON::XS will serialize as an integer

=cut

sub datadogId () {
	my $id = Crypt::Random::makerandom(Si
 = $connection_data->{parentid};
	}
	push(@spans, $tx_span);

	$app->ua->put($args->{datadogURL}, json => [ \@spans ], sub ($ua, $tx) {
		if($tx->res->is_error) {
			$app->log->error("HTTP Error sendi

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.