Group
Extension

Matches 35359

DR-Msgpuck ( U/UN/UNERA/DR-Msgpuck-0.04.tar.gz, UNERA, 2016; MetaCPAN )
DR-Msgpuck/lib/DR/Msgpuck/Bool.pm ( view source; MetaCPAN )
 '!'         => sub { $_[0]->new(!${ $_[0] }) },
    '""'        => sub { ${ $_[0] } },
;

sub TO_JSON {
    my ($self) = @_;
    $$self ? 'true' : 'false';
}

sub TO_MSGPACK {
    my ($self) = @_;
  
Dist-Zilla-Plugin-ChangeStats-Dependencies-Git ( C/CS/CSSON/Dist-Zilla-Plugin-ChangeStats-Dependencies-Git-0.0200.tar.gz, CSSON, 2016; MetaCPAN )
Dist-Zilla-Plugin-ChangeStats-Dependencies-Git/lib/Dist/Zilla/Plugin/ChangeStats/Dependencies/Git.pm ( view source; MetaCPAN )
file;
use Path::Tiny;
use Try::Tiny;
use CPAN::Changes;
use CPAN::Changes::Group;
use JSON::MaybeXS qw/decode_json/;

with qw/
    Dist::Zilla::Role::Plugin
    Dist::Zilla::Role::FileMunger
/;

sub m
 if(!path('META.json')->exists) {
        $self->log(['Could not find META.json in distribution root - skips']);
        return;
    }
    my $current_meta = decode_json(path('META.json')->slurp)->{'p
lf->repo->run('show', join ':' => ($tag, 'META.json'));
    }
    catch {
        if($_ =~ m{^fatal:}) {
            $self->log(['Could not find META.json in %s - skipping', $tag]);
        }
        
DR-Msgpuck ( U/UN/UNERA/DR-Msgpuck-0.04.tar.gz, UNERA, 2016; MetaCPAN )
DR-Msgpuck/msgpuck.h ( view source; MetaCPAN )
t data_size, const char *format, va_list args);

/**
 * \brief print to \a file msgpacked data in JSON format.
 * MP_EXT is printed as "EXT" only
 * \param file - pointer to file (or NULL for stdout)
Armadito-Prelude ( V/VH/VHAMON/Armadito-Prelude-0.0.4_01.tar.gz, VHAMON, 2016; MetaCPAN )
Armadito-Prelude/lib/Armadito/Prelude/HTTP/Client/ArmaditoAV.pm ( view source; MetaCPAN )
n qw{ POST };
use UNIVERSAL::require;
use URI;
use Encode;
use Data::Dumper;
use URI::Escape;
use JSON;

use Armadito::Prelude::HTTP::Client::ArmaditoAV::Event;
use Armadito::Prelude::HTTP::Client::Ar
adito-prelude',
		'Referer'    => $url
	);

	$headers->header( 'Content-Type'     => 'application/json' ) if ( $params{method} eq 'POST' );
	$headers->header( 'X-Armadito-Token' => $self->{token} )   
{
	my ( $self, $response ) = @_;

	$self->{logger}->info( $response->content() );
	my $obj = from_json( $response->content(), { utf8 => 1 } );

	if ( defined( $obj->{token} ) ) {
		$self->{token} = $o
IUP ( K/KM/KMX/IUP-0.305.tar.gz, KMX, 2016; MetaCPAN )
IUP/lib/IUP/Canvas.pm ( view source; MetaCPAN )
ed from IUP::Internal::Canvas

#XXX-CHECKLATER hack to make the following modules apper in META.json provide=>...
package IUP::Canvas::Bitmap;
package IUP::Canvas::Palette;
package IUP::Canvas::P
Plack-Middleware-AutoRefresh ( M/MG/MGRIMES/Plack-Middleware-AutoRefresh-0.09.tar.gz, MGRIMES, 2016; MetaCPAN )
Plack-Middleware-AutoRefresh/lib/Plack/Middleware/AutoRefresh.pm ( view source; MetaCPAN )
e Plack::Util::Accessor qw( dirs filter wait );

use AnyEvent;
use AnyEvent::Filesys::Notify;
use JSON::Any;
use File::Slurp;
use File::ShareDir qw(dist_file);
use File::Basename;
use Carp;
use Readon
ents as json
sub _respond {
    my ( $self, $resp ) = @_;
    ## TODO: check that resp is a hash ref

    return [
        200,
        [ 'Content-Type' => 'application/json' ],
        [ JSON::Any->n
Quant-Framework ( B/BI/BINARY/Quant-Framework-0.36.tar.gz, BINARY, 2016; MetaCPAN )
Quant-Framework/lib/Quant/Framework/EconomicEventCalendar.pm ( view source; MetaCPAN )
>new({
        recorded_date => $dt,
        events => $arr_events
     });

=cut

use Moose;
use JSON;

extends 'Quant::Framework::Utils::MarketData';

use Date::Utility;
use List::MoreUtils qw(first
File-Misc ( M/MI/MIKO/File-Misc-0.10.tar.gz, MIKO, 2016; MetaCPAN )
File-Misc/lib/File/Misc.pm ( view source; MetaCPAN )
th to that file. For example, this command:

 search_inc('JSON/Tiny.pm')

might return somethng like this:

 /usr/local/share/perl/5.18.2/JSON/Tiny.pm

The given path must be the full path within the 
 not return the path to JSON/Tiny.pm:

 search_inc('Tiny.pm')

That feature might be added later.

If you prefer, you can give the path in Perl module format:

 search_inc('JSON::Tiny')

=cut

sub sea
CGI-Snapp ( R/RS/RSAVAGE/CGI-Snapp-2.01.tgz, RSAVAGE, 2016; MetaCPAN )
CGI-Snapp/lib/CGI/Snapp.pm ( view source; MetaCPAN )
_message_div',
		content => $self -> param('renderer') -> render('note.tx', $param),
	};

	return JSON::XS -> new -> utf8 -> encode($output);

=head2 How does add_header() differ from header_add()?

F
File-Misc ( M/MI/MIKO/File-Misc-0.10.tar.gz, MIKO, 2016; MetaCPAN )
File-Misc/lib/File/Misc.pod ( view source; MetaCPAN )
th to that file. For example, this command:

 search_inc('JSON/Tiny.pm')

might return somethng like this:

 /usr/local/share/perl/5.18.2/JSON/Tiny.pm

The given path must be the full path within the 
 not return the path to JSON/Tiny.pm:

 search_inc('Tiny.pm')

That feature might be added later.

If you prefer, you can give the path in Perl module format:

 search_inc('JSON::Tiny')

=head2 script
Mojolicious-Plugin-Log-Elasticsearch ( J/JU/JUSTIN/Mojolicious-Plugin-Log-Elasticsearch-1.162530.tar.gz, JUSTIN, 2016; MetaCPAN )
Mojolicious-Plugin-Log-Elasticsearch/lib/Mojolicious/Plugin/Log/Elasticsearch.pm ( view source; MetaCPAN )
arch instance

use Mojo::Base 'Mojolicious::Plugin';

use Time::HiRes qw/time/;
use Mojo::JSON  qw/encode_json/;

sub register {
  my ($self, $app, $conf) = @_;

  my $index = $conf->{index} || die "n
 }
    }
  };

  my $url = "${es_url}/${index}/${type}/_mapping";
  my $tx = $app->ua->post($url, json => $index_meta);

  $app->hook(before_dispatch => sub {
    my $c = shift;
    $c->stash->{'mojol
};
    }

    my $url = "${es_url}/${index}/${type}/?timestamp=${t}";
    $c->app->ua->post($url, json => $data, sub {
      my ($ua, $tx) = @_;
      if (! $tx) {
        $c->app->log->warn("could no
Catalyst-ResponseHelpers ( T/TS/TSIBLEY/Catalyst-ResponseHelpers-1.02.tar.gz, TSIBLEY, 2016; MetaCPAN )
Catalyst-ResponseHelpers/lib/Catalyst/ResponseHelpers.pm ( view source; MetaCPAN )
   Forbidden
        NotFound
        ClientError
        ServerError
        TextPlain
        AsJSON
        FromFile
        FromCharString
        FromByteString
        FromHandle
        Redirec
 $c->detach;
}

=head2 AsJSON($c, $status?, $data)

Sets a JSON 200 OK response by default, with an optional custom status.  Data
should be serializable by a view named C<JSON> provided by your applic
ation
(e.g. via L<Catalyst::View::JSON>).

=cut

sub AsJSON {
    my ($c, $status, $data) = @_;
    ($status, $data) = (undef, $status)
        if @_ == 2;
    $status //= HTTP_OK;
    $c->response->s
Bio-EBI-RNAseqAPI ( M/MK/MKEAYS/Bio-EBI-RNAseqAPI-1.04.tar.gz, MKEAYS, 2016; MetaCPAN )
Bio-EBI-RNAseqAPI/lib/Bio/EBI/RNAseqAPI.pm ( view source; MetaCPAN )
e Moose;
use MooseX::FollowPBP;
use LWP::UserAgent;
use Log::Log4perl qw( :easy );
use JSON::Parse qw( parse_json );

our $VERSION = 1.04;

=head1 ATTRIBUTES

=over 2

=cut

#=item B<api_base>

#Base 
and more information about the results.


=over 2

=item B<get_run>

Accesses the API's C<getRun> JSON endpoint and returns analysis information for
a single run, passed in the arguments.

Arguments s
function takes an anonymous array of run accessions and sequentially
accesses the API's C<getRun> JSON endpoint to collect the analysis information
for each run in the list provided.

 my $runInfo = $
WWW-Twilio-API ( S/SC/SCOTTW/WWW-Twilio-API-0.21.tar.gz, SCOTTW, 2016; MetaCPAN )
WWW-Twilio-API/lib/WWW/Twilio/API.pm ( view source; MetaCPAN )
 with all the details. Besides, you can
also opt to have Twilio send its responses to you in CSV, JSON, or
HTML.

=head2 Using WWW::Twilio::API

Now that we have a basic understanding of how Twilio's 
', 'json', or 'html' (any representation found at
http://www.twilio.com/docs/api/rest/tips) to the Twilio API call:

  ## return JSON in $response->{content}
  $response = $twilio->POST('Calls.json',

  ## view a list of calls we've made
  $response = $twilio->GET('Calls.json');
  print $response->{content};  ## this is a JSON document

  ## view one particular call we've made
  $response = $twili
Furl-HTTP-OAuth ( A/AS/ASCRA/Furl-HTTP-OAuth-0.002.tar.gz, ASCRA, 2016; MetaCPAN )
Furl-HTTP-OAuth/real_test.pl ( view source; MetaCPAN )
#!/usr/bin/perl

use lib './lib';
use Furl::HTTP::OAuth;
use URI;
use Encode;
use JSON::XS;

my $client = Furl::HTTP::OAuth->new(
    consumer_key => "vgyYVbu7yljXXd2MZTfDmw",
    consumer_secret => "
earch?term=Food&location=San+Francisco');

use Data::Dumper;
warn Dumper({
    version => $version,
    code => $code,
    message => $msg,
    headers => $headers,
    body => decode_json($body)
});
Caroline ( T/TO/TOKUHIROM/Caroline-0.22.tar.gz, TOKUHIROM, 2016; MetaCPAN )
Caroline/lib/Caroline.pm ( view source; MetaCPAN )
_;
    return unless $self->{debug};

#   require JSON::PP;
    open my $fh, '>>:utf8', 'caroline.debug.log';
    print $fh $stuff;
#   print $fh JSON::PP->new->allow_nonref(1)->encode($stuff) . "\n";
Furl-HTTP-OAuth ( A/AS/ASCRA/Furl-HTTP-OAuth-0.002.tar.gz, ASCRA, 2016; MetaCPAN )
Furl-HTTP-OAuth/old_test.pl ( view source; MetaCPAN )
#!/usr/bin/perl

use lib './lib';
use Furl::HTTP::OAuth;
use URI;
use Encode;
use JSON::XS;

my $client = Furl::HTTP::OAuth->new(
    consumer_key => "vgyYVbu7yljXXd2MZTfDmw",
    consumer_secret => "
 => $version,
    code => $code,
    message => $msg,
    headers => $headers,
    body => decode_json($body)
});


    # consumer_key => "9djdj82h48djs9d2",
    # consumer_secret => "consumersecret",
Data-Sah-JS ( P/PE/PERLANCAR/Data-Sah-JS-0.87.tar.gz, PERLANCAR, 2016; MetaCPAN )
Data-Sah-JS/lib/Data/Sah/Compiler/js.pm ( view source; MetaCPAN )
  my ($self, $val) = @_;

    state $json = do {
        require JSON::MaybeXS;
        JSON::MaybeXS->new->allow_nonref;
    };

    # we need cleaning since json can't handle qr//, for one.
    stat
e $cleanser = do {
        require Data::Clean::JSON;
        Data::Clean::JSON->get_cleanser;
    };

    $json->encode($cleanser->clone_and_clean($val));
}

sub compile {
    my ($self, %args) = @_;
Data-Sah-JS ( P/PE/PERLANCAR/Data-Sah-JS-0.87.tar.gz, PERLANCAR, 2016; MetaCPAN )
Data-Sah-JS/lib/Data/Sah/JS.pm ( view source; MetaCPAN )
 {
        require File::Temp;
        require JSON::MaybeXS;
        #require String::ShellQuote;

        my $data = shift;

        state $json = JSON::MaybeXS->new->allow_nonref;

        # code t
s
        my $src = "var validator = $v_src;\n\n".
            "console.log(JSON.stringify(validator(".
                $json->encode($data).")))";

        my ($jsh, $jsfn) = File::Temp::tempfile();
file $jsfn: $!";

        my $out = IPC::System::Options::readpipe($nodejs_path, $jsfn);
        $json->decode($out);
    };
}

1;
# ABSTRACT: Some functions to use JavaScript Sah validator code from 
QBit-Application-Model-DB-mysql-Users ( M/MA/MADSKILL/QBit-Application-Model-DB-mysql-Users-0.002.tar.gz, MADSKILL, 2016; MetaCPAN )
QBit-Application-Model-DB-mysql-Users/lib/QBit/Application/Model/DB/mysql/Users.pm ( view source; MetaCPAN )
             {name => 'value',   type => 'TEXT',    not_null => 1,},
                {name => 'is_json', type => 'BOOLEAN', default  => '0',},
            ],
            foreign_keys => [[[qw(user_id)

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