Group
Extension

Matches 35358

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) = @_;
  
DBIx-Class-Visualizer ( C/CS/CSSON/DBIx-Class-Visualizer-0.0200.tar.gz, CSSON, 2016; MetaCPAN )
DBIx-Class-Visualizer/lib/DBIx/Class/Visualizer.pm ( view source; MetaCPAN )
w/ArrayRef RegexpRef Maybe HashRef InstanceOf Bool/;
use Syntax::Keyword::Gather;
use JSON::MaybeXS qw/encode_json/;
use PerlX::Maybe;
use DBIx::Class::Visualizer::ResultHandler;

has logger_conf => (
. '-' . $column_name);

            $el->attr('data-column-info', encode_json($result_handler->get_column($column_name)->TO_JSON));
        });

        # There might be a tiny <polygon.table-name> on
       ...
            ],
          }">a_column_id</text>

The C<data-column-info> attribute is a json object that is directly usable by something like jQuery:

    # has_many
    $('#column-TableName
Captcha-reCaptcha ( S/SU/SUNNYP/Captcha-reCaptcha-0.99.tar.gz, SUNNYP, 2016; MetaCPAN )
Captcha-reCaptcha/lib/Captcha/reCAPTCHA.pm ( view source; MetaCPAN )
 { type => 'text/javascript' },
    "\n//<![CDATA[\n"
     . "var RecaptchaOptions = "
     . $h->json_encode( $options )
     . ";\n//]]>\n"
  ) . "\n";
}

=item C<< get_options_setter_div( $pubkey, 
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",
Armadito-Prelude ( V/VH/VHAMON/Armadito-Prelude-0.0.4_01.tar.gz, VHAMON, 2016; MetaCPAN )
Armadito-Prelude/lib/Armadito/Prelude/HTTP/Client/ArmaditoAV/Event/OnDemandCompletedEvent.pm ( view source; MetaCPAN )
t;

use strict;
use warnings;
use base 'Armadito::Prelude::HTTP::Client::ArmaditoAV::Event';

use JSON;
use Armadito::Prelude::Tools::Security qw(isANumber);

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

BrowserStack-Local ( B/BS/BSTACK/BrowserStack-Local-1.0.0.tar.gz, BSTACK, 2016; MetaCPAN )
BrowserStack-Local/blib/lib/BrowserStack/Local.pm ( view source; MetaCPAN )
emp;
use Config;
use Cwd;
use File::Temp qw(tempdir);
use File::Path qw(make_path);
use JSON::Parse qw(parse_json);

require Exporter;

our @ISA = qw(Exporter);

our %EXPORT_TAGS = ( 'all' => [ qw(
  
pcode} = "start";
  my $command = $self->command();
  
  my $out = `$command`;
  my $data = parse_json ($out);

  if ($data->{state} != "connected"){
    die $data->{message}->{message};
  }
  else {
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
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)
});
Armadito-Prelude ( V/VH/VHAMON/Armadito-Prelude-0.0.4_01.tar.gz, VHAMON, 2016; MetaCPAN )
Armadito-Prelude/lib/Armadito/Prelude/HTTP/Client/ArmaditoAV/Event/StatusEvent.pm ( view source; MetaCPAN )
nt;

use strict;
use warnings;
use base 'Armadito::Prelude::HTTP::Client::ArmaditoAV::Event';
use JSON;
use Data::Dumper;
use Armadito::Prelude::IDMEF qw( setAnalyzer setClassification setTarget setAs
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
Valence ( F/FR/FRACTAL/Valence-0.201.tar.gz, FRACTAL, 2016; MetaCPAN )
Valence/lib/Valence.pm ( view source; MetaCPAN )
 common::sense;

use AnyEvent;
use AnyEvent::Util;
use AnyEvent::Handle;
use Callback::Frame;
use JSON::XS;
use File::Spec;
use File::ShareDir;

use Alien::Electron;
use Valence::Object;


our $VERSIO
ndler = sub {
    my ($hdl, $line) = @_;

    my $msg = eval { decode_json($line) };

    if ($@) {
      warn "error decoding JSON from electron: $@: $line";
    } else {
      debug(1, sub { "<<<<<<
;

  debug(1, sub { "Sending to electron >>>>>>>>>>>>>>>>>" }, $msg);

  $self->{hdl}->push_write(json => $msg);

  $self->{hdl}->push_write("\n");
}


sub _call_method {
  my ($self, $msg) = @_;

  #
Plack-Middleware-ServerStatus-Lite ( K/KA/KAZEBURO/Plack-Middleware-ServerStatus-Lite-0.36.tar.gz, KAZEBURO, 2016; MetaCPAN )
Plack-Middleware-ServerStatus-Lite/lib/Plack/Middleware/ServerStatus/Lite.pm ( view source; MetaCPAN )
::Scoreboard;
use Net::CIDR::Lite;
use Try::Tiny;
use JSON;
use Fcntl qw(:DEFAULT :flock);
use IO::Handle;

our $VERSION = '0.36';

my $JSON = JSON->new->utf8(0);

sub prepare_app {
    my $self = shi
SERVER_PROTOCOL},
            time => time(),
        };
    }
    $self->{__scoreboard}->update($JSON->encode({
        %{$prev},
        pid => $$,
        ppid => getppid(),
        uptime => $self
      for my $pid ( @all_workers  ) {
            my $json = $stats->{$pid};
            my $pstatus = eval { 
                $JSON->decode($json || '{}');
            };
            $pstatus ||= {};
BrowserStack-Local ( B/BS/BSTACK/BrowserStack-Local-1.0.0.tar.gz, BSTACK, 2016; MetaCPAN )
BrowserStack-Local/lib/BrowserStack/Local.pm ( view source; MetaCPAN )
emp;
use Config;
use Cwd;
use File::Temp qw(tempdir);
use File::Path qw(make_path);
use JSON::Parse qw(parse_json);

require Exporter;

our @ISA = qw(Exporter);

our %EXPORT_TAGS = ( 'all' => [ qw(
  
pcode} = "start";
  my $command = $self->command();
  
  my $out = `$command`;
  my $data = parse_json ($out);

  if ($data->{state} != "connected"){
    die $data->{message}->{message};
  }
  else {
XAS-Service ( K/KE/KESTEB/XAS-Service-0.01.tar.gz, KESTEB, 2016; MetaCPAN )
XAS-Service/lib/XAS/Service.pm ( view source; MetaCPAN )
faces are accessed over HTTP. That 
interface will be REST based. They will return either HTML or JSON depending 
on HTTP headers. The HTML interface will be a simple layer to the underlaying 
api. Th
or REST based 
applications.

=head2 VALIDATION

You also need to validate your input. Any posted JSON data is converted into a
L<Hash::MultiValue|https://metacpan.org/pod/Hash::MultiValue> object. Th
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
POE-XUL ( G/GW/GWYN/POE-XUL-0.0601.tar.gz, GWYN, 2016; MetaCPAN )
POE-XUL/lib/POE/XUL/Request.pm ( view source; MetaCPAN )
);
    }
    elsif( $ct eq 'application/json' or $ct eq 'text/json' ) {
        # TODO : request might be an array of requests!
        return $self->decode_json ( $C );
    }
    xwarn "Unable to par
#################
sub decode_json
{
    my( $self, $C ) = @_;
    my $args = eval { 
            if( $JSON::XS::VERSION > 2 ) {
                return JSON::XS::decode_json( $C ) 
            }
      
      else {
                return JSON::XS::from_json( $C ) 
            }
        };
    if( $@ ) {
        xwarn "JSON error: $@";
        return RC_BAD_REQUEST;
    }
    unless( 'HASH' eq ref $a
POE-XUL ( G/GW/GWYN/POE-XUL-0.0601.tar.gz, GWYN, 2016; MetaCPAN )
POE-XUL/lib/POE/XUL.pm ( view source; MetaCPAN )
e
manager.  These nodes are converted into JSON instructions by the
ChangeManager, which are sent as the HTTP response. The JS client library
decodes the JSON instructions, populating the XUL DOM tree
nager converts any changes to
the POE::XUL::Nodes to JSON instructions, which are sent as the HTTP
response. The JS client library decodes the JSON instructions, modifying the
XUL DOM tree as necessar
                            \/                /\
    HTTP/AJAX                 Request            JSON
                                \/                /\
    POE::Component::XUL       decode        
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)
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

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