Group
Extension

Matches 35358

AI-XGBoost ( P/PA/PABLROD/AI-XGBoost-0.11.tar.gz, PABLROD, 2017; MetaCPAN )
AI-XGBoost/lib/AI/XGBoost/Booster.pm ( view source; MetaCPAN )
BoosterGetAttrNames( $self->_handle ) } };
}

sub TO_JSON {
    my $self = shift;
    my $trees = XGBoosterDumpModelEx( $self->_handle, "", 1, "json" );
    return "[" . join( ',', @$trees ) . "]";
}
r as a HASHREF

=head2 TO_JSON

Serialize the booster to JSON.

This method is to be used with the option C<convert_blessed> from L<JSON>.
(See L<https://metacpan.org/pod/JSON#OBJECT-SERIALISATION>)

IOD ( P/PE/PERLANCAR/IOD-0.9.12.tar.gz, PERLANCAR, 2017; MetaCPAN )
IOD/lib/IOD.pod ( view source; MetaCPAN )
g (2017) many implementations are still
stuck at version 1.0/1.1 of the specification.

B<JSON>. Although JSON is popular and simple, most parsers are not round-trip.
And even if the parser were round
umentation for
L<JSON> Perl module mentions the phrase "round-trip", but it uses the phrase to
mean integrity of values, not preserving comments/whitespaces.)

Note that IOD uses JSON in places.

B<Ap
ore non-newline characters with optional encoding prefix, or
a JSON string with double quotes, or a JSON array started with "[", or a JSON
hash (object) started with "{". Encoding prefix is C<!> follo
MozRepl-RemoteObject ( C/CO/CORION/MozRepl-RemoteObject-0.40.tar.gz, CORION, 2017; MetaCPAN )
MozRepl-RemoteObject/lib/MozRepl/RemoteObject.pm ( view source; MetaCPAN )
package MozRepl::RemoteObject;
use strict;
use Exporter 'import';
use JSON;
use Encode qw(decode);
use Carp qw(croak);
use Scalar::Util qw(refaddr weaken);

=head1 NAME

MozRepl::RemoteObject - treat 
 function() {
    repl.linkedVars = {};
    repl.linkedIdNext = 1;
};

repl.JSON_ok = function(val,context) {
    return JSON.stringify({
        "status":"ok",
        "result": repl.wrapResults(val,
 {
        var res = eval(js);
        return repl.JSON_ok(res,context);
    } catch(e) {
        //for (var x in e) { alert(x)};
        return JSON.stringify({
            "status":"error",
        
Selenium-UserAgent ( G/GE/GEMPESAW/Selenium-UserAgent-0.11.tar.gz, GEMPESAW, 2017; MetaCPAN )
Selenium-UserAgent/lib/Selenium/UserAgent.pm ( view source; MetaCPAN )
.11';
# ABSTRACT: Emulate mobile devices by setting user agents when using webdriver
use Moo;
use JSON;
use Cwd qw/abs_path/;
use Carp qw/croak/;
use List::Util 1.33 qw/any/;
use Selenium::Firefox::Pr
 s/UserAgent\.pm$/devices.json/;

        my $devices;
        {
            local $/ = undef;
            open (my $fh, "<", $devices_file);
            $devices = from_json(<$fh>);
            close
Agent/blob/master/lib/Selenium/devices.json>;
they're vetted against the L<values that Mozilla uses for
Firefox|https://code.cdn.mozilla.net/devices/devices.json>.

Usage looks like:

    my $sua = Se
MediaCloud-JobManager ( L/LV/LVALIUKAS/MediaCloud-JobManager-0.27.tar.gz, LVALIUKAS, 2017; MetaCPAN )
MediaCloud-JobManager/lib/MediaCloud/JobManager/Broker/RabbitMQ.pm ( view source; MetaCPAN )
aCloud::JobManager::Broker';

use Net::AMQP::RabbitMQ;
use UUID::Tiny ':std';
use Tie::Cache;
use JSON;
use Data::Dumper;
use Readonly;

use Log::Log4perl qw(:easy);
Log::Log4perl->easy_init(
    {
  
NORMAL => 1,
    $MediaCloud::JobManager::Job::MJM_JOB_PRIORITY_HIGH   => 2,
);

# JSON (de)serializer
my $json = JSON->new->allow_nonref->canonical->utf8;

# RabbitMQ connection credentials
has '_hos
_declare_queue( $queue_name, $durable, $declare_and_bind_exchange, $lazy_queue );
}

sub _publish_json_message($$$;$$)
{
    my ( $self, $routing_key, $payload, $extra_options, $extra_props ) = @_;

 
MozRepl-RemoteObject ( C/CO/CORION/MozRepl-RemoteObject-0.40.tar.gz, CORION, 2017; MetaCPAN )
MozRepl-RemoteObject/lib/MozRepl/RemoteObject/Methods.pm ( view source; MetaCPAN )
eturn bridge($self)->unjson($js);
}

=head2 C<< $obj->MozRepl::RemoteObject::Methods::transform_arguments(@args) >>

This method transforms the passed in arguments to their JSON string
representations
s a Javascript string.

=cut
 
sub transform_arguments {
    my $self = shift;
    my $json = bridge($self)->json;
    map {
        if (! defined) {
             'null'
        } elsif (/^(?:[1-9][0-
                             id($cb)
        } elsif (ref) {
            $json->encode($_);
        } else {
            $json->encode($_)
        }
    } @_
};

# Helper to centralize the reblessing
DarkSky-API ( M/MA/MARTYLOO/DarkSky-API-1.1.5.tar.gz, MARTYLOO, 2017; MetaCPAN )
DarkSky-API/lib/DarkSky/API.pm ( view source; MetaCPAN )
o DarkSky
package DarkSky::API;
use strict;
use warnings;
use JSON::XS;
use HTTP::Tiny;
use Moo;

our $VERSION = '1.1.5';

my $json = JSON::XS->new->pretty->canonical;

my $api   = "https://api.darksk
response->{reason}\n"
        unless $response->{success};

    return decode_json( $response->{content} );
}

sub TO_JSON { return { %{ shift() } }; }

1;

=pod

=encoding utf-8

=head1 NAME

DarkSky
::API - Provides Perl API to DarkSky

=head1 SYNOPSIS

    use DarkSky::API;
    use JSON::XS;
    use feature 'say';
    
    my $lat  = 43.6667;
    my $long = -79.4167;
    my $time = "1475363709";
MediaCloud-JobManager ( L/LV/LVALIUKAS/MediaCloud-JobManager-0.27.tar.gz, LVALIUKAS, 2017; MetaCPAN )
MediaCloud-JobManager/lib/MediaCloud/JobManager/Job.pm ( view source; MetaCPAN )
my_variable>) will be discarded after
each run.

Returns result on success (serializable by the L<JSON> module). The result will
be discarded if the job is added as a background process.

Provides pro
(optional) C<$args> (hashref), arguments required for running the
function (serializable by the L<JSON> module)

=item * (optional, internal) job handle to be later used by send_progress()

=back

Ret
* (optional) C<$args> (hashref), arguments needed for running the
function (serializable by the L<JSON> module)

=back

Returns result (may be false of C<undef>) on success, C<die()>s on error

=cut

MooX-Options ( R/RE/REHSACK/MooX-Options-4.103.tar.gz, REHSACK, 2017; MetaCPAN )
MooX-Options/lib/MooX/Options.pm ( view source; MetaCPAN )
IONS_ATTRIBUTES
    = qw/format short repeatable negatable autosplit autorange doc long_doc order json hidden spacer_before spacer_after/;

sub import {
    my ( undef, @import ) = @_;
    my $options
ions{order} = 0 if !defined $options{order};

    if ( $options{json}
        || ( defined $options{format} && $options{format} eq 'json' ) )
    {
        delete $options{repeatable};
        delete 
ange};
        delete $options{negativable};
        delete $options{negatable};
        $options{json}   = 1;
        $options{format} = 's';
    }

    if ( $options{autorange} and not defined $opti
Redis-RateLimit ( M/MM/MMIMS/Redis-RateLimit-1.0002.tar.gz, MMIMS, 2017; MetaCPAN )
Redis-RateLimit/lib/Redis/RateLimit.pm ( view source; MetaCPAN )
igest::SHA1 qw/sha1_hex/;
use File::Share qw/dist_file/;
use File::Slurp::Tiny qw/read_file/;
use JSON::MaybeXS;
use List::Util qw/any max min/;
use Redis;
use Try::Tiny;
use namespace::clean;

#pod =
"$_ undefined" for qw/interval limit/;
            [
                map 0+$_, # numify for later JSON encoding
                @{$rule}{qw/interval limit/},
                grep defined, $rule->{prec
eval($script, @params);
    };
}

has _json_encoder => (
    is      => 'ro',
    default => sub { JSON::MaybeXS->new(utf8 => 1) },
    handles => {
        json_encode => 'encode',
    },
);

has _wh
MooX-Options ( R/RE/REHSACK/MooX-Options-4.103.tar.gz, REHSACK, 2017; MetaCPAN )
MooX-Options/lib/MooX/Options/Role.pm ( view source; MetaCPAN )
 and convert the result for the "new" method.

It is use by "new_with_options".

=cut

my $decode_json;

sub parse_options {
    my ( $class, %params ) = @_;

    my %options_data   = $class->_options
f ( $data{json} ) {
                    defined $decode_json
                        or $decode_json = eval {
                        use_module("JSON::MaybeXS");
                        JSON::MaybeXS
->can("decode_json");
                        };
                    defined $decode_json
                        or $decode_json = eval {
                        use_module("JSON::PP");
             
App-bovespa ( R/RE/RECSKY/App-bovespa-0.003.tar.gz, RECSKY, 2017; MetaCPAN )
App-bovespa/lib/App/bovespa.pm ( view source; MetaCPAN )
use strict;
use warnings;
package App::bovespa;

use LWP::UserAgent;
use JSON;

my $agent_string = "Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0";

sub new {
    my ( $class ) = @
:single = 1;

    my %url_params = (
        q           => $yahoo_query,
        format      => "json",
        env         => "store://datatables.org/alltableswithkeys", 
        callback    => unde
     $raw_html = $response->decoded_content;
    }else{
        die;
    }

    my $data = decode_json $raw_html;
    return $data->{ query }{ results }{ quote }{ Bid };

}

=head1 NAME

App::bovespa 
DR-TarantoolQueue ( U/UN/UNERA/DR-TarantoolQueue-0.44.tar.gz, UNERA, 2017; MetaCPAN )
DR-TarantoolQueue/lib/DR/TarantoolQueue/Task.pm ( view source; MetaCPAN )
package DR::TarantoolQueue::Task;
use utf8;
use strict;
use warnings;
use Mouse;
use JSON::XS ();
use Carp;

has space   => (is => 'ro', isa => 'Str', required => 1);
has status  => (
    is          
WebService-NetSuite ( P/PH/PHRED/WebService-NetSuite-0.05.tar.gz, PHRED, 2017; MetaCPAN )
WebService-NetSuite/lib/WebService/NetSuite.pm ( view source; MetaCPAN )
ose;
use Carp;
use LWP;
use LWP::UserAgent;
use LWP::Debug;
use SOAP::Lite;
use Data::Dumper;
use JSON;
use XML::Parser;
use XML::Parser::EasyTree;
$XML::Parser::EasyTree::Noempty = 1;
use Storable qw
'application/json');
    #$req->content($content);
    my $res = $ua->request($req);
    my $json;
    if ($res->is_success) {
        #deb($res->content."\n");
        $json = decode_json($res->conte
      deb Dumper($json)."\n";
        #deb($json->{'Status'}."\n");
    } else {
        deb($res->status_line, "\n");
        return; # error occurred - exit
    }

    #deb(@{$json}."\n");
    deb "
MooX-Options ( R/RE/REHSACK/MooX-Options-4.103.tar.gz, REHSACK, 2017; MetaCPAN )
MooX-Options/lib/MooX/Options/Descriptive/Usage.pm ( view source; MetaCPAN )
format_doc->{$format} if defined $format;
        $format_doc_str = 'JSON'
            if defined $options_data{ $opt->{name} }{json};

        my $spec
            = ( defined $short ? "-" . $short .
format_doc->{$format} if defined $format;
        $format_doc_str = 'JSON'
            if defined $options_data{ $opt->{name} }{json};
        push @message,
              ( defined $short ? "-" . $sh
{$format}
            if defined $format;
        $format_doc_str = 'JSON'
            if defined $options_data{ $opt->{name} }{json};

        my $opt_long_name
            = "-" . ( length( $opt->{n
MooX-Options ( R/RE/REHSACK/MooX-Options-4.103.tar.gz, REHSACK, 2017; MetaCPAN )
MooX-Options/lib/MooX/Options/Manual/MooXCmd.pod ( view source; MetaCPAN )
n option log_adapter => (is => "ro", required => 1, trigger => 1, json => 1 );
  option connection => (is => "ro", required => 1, json => 1);

  sub _trigger_log_adapter { my ( $self, $opts ) = @_; lo
DR-TarantoolQueue ( U/UN/UNERA/DR-TarantoolQueue-0.44.tar.gz, UNERA, 2017; MetaCPAN )
DR-TarantoolQueue/lib/DR/TarantoolQueue/PackUnpack.pm ( view source; MetaCPAN )
ss::Zlib;
use MIME::Base64;

use JSON::XS;
        
has jsp =>
    is      => 'ro',
    isa     => 'Object',
    lazy    => 1,
    builder => sub {
        return JSON::XS
                -> new
     
DR-TarantoolQueue ( U/UN/UNERA/DR-TarantoolQueue-0.44.tar.gz, UNERA, 2017; MetaCPAN )
DR-TarantoolQueue/lib/DR/TarantoolQueue.pm ( view source; MetaCPAN )
package DR::TarantoolQueue;
use utf8;
use strict;
use warnings;
use Mouse;
use Carp;
use JSON::XS;
require DR::TarantoolQueue::Task;
$Carp::Internal{ (__PACKAGE__) }++;

our $VERSION = '0.44';
use fea
DR-DateTime ( U/UN/UNERA/DR-DateTime-1.00.tar.gz, UNERA, 2017; MetaCPAN )
DR-DateTime/lib/DR/DateTime.pm ( view source; MetaCPAN )
 POSIX ();
use Time::Local ();
use Time::Zone ();
use feature 'state';

sub TO_JSON { shift->strftime('%F %T%z') }  # JSON::XS compatible

use overload
        'bool'      => sub { 1 },
        '""'  
Dist-Zilla-Plugin-ContributorsFromGit ( R/RS/RSRCHBOY/Dist-Zilla-Plugin-ContributorsFromGit-0.019.tar.gz, RSRCHBOY, 2017; MetaCPAN )
Dist-Zilla-Plugin-ContributorsFromGit/lib/Dist/Zilla/Plugin/ContributorsFromGit.pm ( view source; MetaCPAN )
ed to distribution metadata under the custom
C<x_contributors> key.  (e.g. in C<META.yml>, C<META.json>, etc)

If you have duplicate contributors because of differences in committer name
or email you 

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