Group
Extension

Matches 35359

Mojolicious-Plugin-DevexpressHelpers ( X/XL/XLAT/Mojolicious-Plugin-DevexpressHelpers-0.163572.tar.gz, XLAT, 2016; MetaCPAN )
Mojolicious-Plugin-DevexpressHelpers/lib/Mojolicious/Plugin/DevexpressHelpers.pm ( view source; MetaCPAN )
Base 'Mojolicious::Plugin';
use Mojolicious::Plugin::DevexpressHelpers::Helpers;
use MojoX::AlmostJSON;




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

    $args->{'tag_camelcase'} //= 1;
    
pp, $args );

    #make json boolean easier to write within templates
    $app->helper( 'true'  => \&MojoX::AlmostJSON::true );
    $app->helper( 'false' => \&MojoX::AlmostJSON::false );

    $app->ho
Net-OAuth-Yahoo ( S/SY/SYAGI/Net-OAuth-Yahoo-1.0.0.tar.gz, SYAGI, 2016; MetaCPAN )
Net-OAuth-Yahoo/lib/Net/OAuth/Yahoo.pm ( view source; MetaCPAN )
pi_url = "http://fantasysports.yahooapis.com/fantasy/v2/team/265.l.5098.t.2/players?format=json";
    my $json = $oauth->access_api( $token, $api_url );

    OTHER METHODS:
    The token expires after
m Yahoo API is returned verbatim.
    This means if you request JSON in the URL, then you'll get JSON back; otherwise XML.  
    my $json = $oauth->access_api( $token, $url );

=cut

sub access_api {
Test-Dist-Zilla ( V/VD/VDB/Test-Dist-Zilla-v0.4.4.tar.gz, VDB, 2016; MetaCPAN )
Test-Dist-Zilla/lib/Test/Dist/Zilla/BuiltFiles.pm ( view source; MetaCPAN )
    plugins => [
#pod             'GatherDir',
#pod             'Manifest',
#pod             'MetaJSON',
#pod         ],
#pod         files => {
#pod             'lib/Dummy.pm' => 'package Dummy; 1;',
 re( qr{^# This file was } ),
#pod                     'MANIFEST',
#pod                     'META.json',
#pod                     'dist.ini',
#pod                     'lib/Dummy.pm',
#pod             
test' => {
        plugins => [
            'GatherDir',
            'Manifest',
            'MetaJSON',
        ],
        files => {
            'lib/Dummy.pm' => 'package Dummy; 1;',
        },
   
Test-Dist-Zilla ( V/VD/VDB/Test-Dist-Zilla-v0.4.4.tar.gz, VDB, 2016; MetaCPAN )
Test-Dist-Zilla/lib/Test/Dist/Zilla.pm ( view source; MetaCPAN )
od     sub _build_plugin { [
#pod         'GatherDir',
#pod         'Manifest',
#pod         'MetaJSON',
#pod     ] };
#pod
#pod     run_me {
#pod         plugins => [
#pod             'GatherDir',
#p
.json' => sub {
#pod         my ( $self ) = @_;
#pod         $self->skip_if_exception();
#pod         my $built_in = path( $self->tzil->built_in );
#pod         my $json = $built_in->child( 'META.json
' )->slurp_utf8;
#pod         cmp_deeply( $json, $self->expected->{ json } );
#pod     };
#pod
#pod =cut

has tzil => (
    is          => 'ro',
    isa         => 'Object',
    lazy        => 1,
    
Perl-PrereqScanner-Scanner-Hint ( V/VD/VDB/Perl-PrereqScanner-Scanner-Hint-v0.1.1.tar.gz, VDB, 2016; MetaCPAN )
Perl-PrereqScanner-Scanner-Hint/lib/Perl/PrereqScanner/Scanner/Hint/Manual.pod ( view source; MetaCPAN )
ust two lines
#pod
#pod     [AutoPrereqs]
#pod     [MetaJSON]
#pod
#pod in your F<dist.ini> file to get C<prereq> key of distribution F<META.json> populated with your
#pod distribution requirements. F
 this statement and adds requirement C<< "Module::Name" => "0.008" >> to
#pod distribution F<META.json>.
#pod
#pod When user installs your module from CPAN, CPAN client (either C<cpan>, or C<cpanp>, o
ie ':all';
#pod
#pod C<autodie> loads C<IPC::System::Simple> module. However, C<autodie>'s F<META.json> says C<autodie>
#pod I<recommends> C<IPC::System::Simple>, but not I<requires> it. Since C<IPC::
Mojolicious-Plugin-DevexpressHelpers ( X/XL/XLAT/Mojolicious-Plugin-DevexpressHelpers-0.163572.tar.gz, XLAT, 2016; MetaCPAN )
Mojolicious-Plugin-DevexpressHelpers/lib/Mojolicious/Plugin/DevexpressHelpers/Helpers.pm ( view source; MetaCPAN )
express controls are defined here
use Modern::Perl;
use Mojo::ByteStream;
use MojoX::AlmostJSON qw(encode_json);
use constant DEBUG => 0;

#Not sure why C<out> function have to decode from utf8,
#but 
ref protected scalar
				$v = $$v;
			}
			elsif ($v!~/^\s*(?:function\s*\()/) {
				$v =  encode_json $v;
			}
			push @options, "$k: $v";
		}
	}
	else{
		push @options, $attrs;
	}
    $binding .= jo
{dataSource}) eq '') {
		my $dataSource = delete $attrs->{dataSource};
		#push @extensions, '$.getJSON("' . $dataSource . '",function(data){$("#'.$id.'").dxDataGrid({ dataSource: data });});';
		#$att
openerserver ( L/LW/LWANG/openerserver_1.1.0.zip, LWANG, 2016; MetaCPAN )
openerserver/opener_server.pl ( view source; MetaCPAN )
ndle;
use AnyEvent::Socket;
use AnyEvent::Util;
use LWP::MediaTypes qw(guess_media_type);
use JSON::XS;
#use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;
#use IO::Compress::Gzip qw(gzip $Gzi
charset=utf8';
	if (ref($data) eq 'HASH') { ### $data is hash pointer, encode it to json data
		$data=encode_json($data);
	}
	$hdr->{'Content-Length'} = length $data;

	while (my ($h, $v) = each
r,$key,$data)=@_;	
	unless ($n->{http_sec}->($r,$key)) {
		return 0;
	}
	
	eval{$data=decode_json($data)};
	if ($@) {
		$n->{send_resp}->($r,$key, {url=>'/op',result=>'error',reason=>"Post data
Net-Async-AMQP ( T/TE/TEAM/Net-Async-AMQP-2.000.tar.gz, TEAM, 2016; MetaCPAN )
Net-Async-AMQP/lib/Net/Async/AMQP/RPC/Server.pm ( view source; MetaCPAN )
head2 json

Returns a L<JSON::MaybeXS> object, for ->encode and ->decode support. This will load L<JSON::MaybeXS> on first call.

=cut

sub json {
	shift->{json} //= do {
		eval {
			require JSON::May
beXS;
		} or die "JSON RPC support requires the JSON::MaybeXS module, which could not be loaded:\n$@";
		JSON::MaybeXS->new
	}
}

=head2 process_message

Called when there is a message to process. Rec
y ($self, %args) = @_;
	$log->debugf("Have message: %s", join ' ', %args);
	if(my $code = $self->{json_handler}{$args{type}}) {
		# Run the code, and upgrade to a Future if necessary - we accept immed
SMS-Send-Fr-OVH ( A/AL/ALEXARN/SMS-Send-Fr-OVH-0.01.tar.gz, ALEXARN, 2016; MetaCPAN )
SMS-Send-Fr-OVH/lib/SMS/Send/Fr/OVH.pm ( view source; MetaCPAN )
package SMS::Send::Fr::OVH;

use strict;
use warnings;
use LWP::Simple qw(get);
use JSON        qw(from_json);
use Carp;

our $VERSION = '0.01';
use base 'SMS::Send::Driver';

use constant URL => 'htt
/http2sms.cgi?&account=%s&login=%s&password=%s&from=%s&to=%s&message="%s"&contentType=application/json';

=head1 NAME

SMS::Send::Fr::OVH - Perl driver for SMS::Send library.

=head1 SYNOPSIS

  use S
uments, $self->{ $arg };
    }

    #my $url = sprintf(URL, @arguments);
    #my $response = from_json(get($url));

    #unless ($response->{status} == 100) {
    #    Carp::croak($response->{message}
Jmespath ( R/RI/RICHE/Jmespath-0.02.tar.gz, RICHE, 2016; MetaCPAN )
Jmespath/lib/Jmespath.pm ( view source; MetaCPAN )
Jmespath;
use strict;
use warnings;
use Jmespath::Parser;
use Jmespath::Visitor;
use JSON qw(encode_json decode_json);
use Try::Tiny;
use v5.14;
our $VERSION = '0.02';
use utf8;
use Encode;

sub compi
$result if not defined $result;

  # JSON block result
  if ( ( ref ($result) eq 'HASH'  ) or
       ( ref ($result) eq 'ARRAY' ) ) {
    try {
      $result = JSON->new
        ->utf8(1)
        ->al
UOTED} == 0 or
       not defined $ENV{JP_UNQUOTED} ) {
    $result = q{"} . $result . q{"};
  }
  return $result;
}

1;

__END__

=head1 NAME

Jmespath - Enabling easy querying for JSON structures.

Jmespath ( R/RI/RICHE/Jmespath-0.02.tar.gz, RICHE, 2016; MetaCPAN )
Jmespath/lib/Jmespath/String.pm ( view source; MetaCPAN )
'     => sub { ${$_[0]}},
              "."      => sub { ${$_[0]}},
              "eq"     => sub { ${$_[0]} },
              fallback => sub { ${$_[0]} },
);

sub TO_JSON { return '' . shift; }

1;
Net-Async-AMQP ( T/TE/TEAM/Net-Async-AMQP-2.000.tar.gz, TEAM, 2016; MetaCPAN )
Net-Async-AMQP/lib/Net/Async/AMQP/Channel.pm ( view source; MetaCPAN )
',
   password => 'guest',
 )->then(sub {
  shift->open_channel->publish(
   type => 'application/json'
  )
 });

=head1 DESCRIPTION

Each Net::Async::AMQP::Channel instance represents a virtual chann
MarpaX-Grammar-GraphViz2 ( R/RS/RSAVAGE/MarpaX-Grammar-GraphViz2-2.00.tgz, RSAVAGE, 2016; MetaCPAN )
MarpaX-Grammar-GraphViz2/scripts/find.grammars.pl ( view source; MetaCPAN )
hareDir;

# --------------

my($app_name) = 'MarpaX-Grammar-GraphViz2';
my($bnf_name) = shift || 'json.1';
$bnf_name     .= '.bnf';
my($path)     = File::ShareDir::dist_file($app_name, $bnf_name);

pr
Net-Async-AMQP ( T/TE/TEAM/Net-Async-AMQP-2.000.tar.gz, TEAM, 2016; MetaCPAN )
Net-Async-AMQP/lib/Net/Async/AMQP/Channel.pod ( view source; MetaCPAN )
',
   password => 'guest',
 )->then(sub {
  shift->open_channel->publish(
   type => 'application/json'
  )
 });

=head1 DESCRIPTION

Each Net::Async::AMQP::Channel instance represents a virtual chann
Jmespath ( R/RI/RICHE/Jmespath-0.02.tar.gz, RICHE, 2016; MetaCPAN )
Jmespath/lib/Jmespath/Lexer.pm ( view source; MetaCPAN )
e strict;
use warnings;
use Jmespath::LexerException;
use Jmespath::EmptyExpressionException;
use JSON;
use String::Util qw(trim);
use List::Util qw(any);
use Try::Tiny;
use utf8;
use feature 'unicode
;
  $lexeme  =~ s/\\`/`/;
  my $parsed_json;
  try {
    $parsed_json = JSON->new->allow_nonref->decode($lexeme);
  } catch {
    try {
      $parsed_json = JSON->new->allow_nonref->decode('"' . trim(
ken_len = $self->{_position} - $start;
  return { type  => 'literal',
           value => $parsed_json,
           start => $start,
           end   => $token_len, };
}

sub _consume_quoted_identifier
MarpaX-Grammar-GraphViz2 ( R/RS/RSAVAGE/MarpaX-Grammar-GraphViz2-2.00.tgz, RSAVAGE, 2016; MetaCPAN )
MarpaX-Grammar-GraphViz2/lib/MarpaX/Grammar/GraphViz2.pm ( view source; MetaCPAN )
 c.ast.bnf.

See the next point for how this file is created.

=item o share/json.1.bnf

It is part of L<MarpaX::Demo::JSONParser>, written as a gist by Peter Stuifzand.

See L<https://gist.github.com
for how this file is created.

=item o html/json.1.svg

This is the image from json.1.bnf.

=item o share/json.2.bnf

It also is part of L<MarpaX::Demo::JSONParser>, written by Jeffrey Kegler as a rep
r.

=item o html/json.2.svg

This is the image from json.2.bnf.

See the previous point for how this file is created.

=item o share/json.3.bnf

It also is part of L<MarpaX::Demo::JSONParser>, and is 
Net-Async-AMQP ( T/TE/TEAM/Net-Async-AMQP-2.000.tar.gz, TEAM, 2016; MetaCPAN )
Net-Async-AMQP/lib/Net/Async/AMQP/RPC/Client.pm ( view source; MetaCPAN )

			$f
		});
	});
}

my $json;
sub json_request {
	my ($self, $cmd, $args) = @_;
	$json ||= do {
		eval {
			require JSON::MaybeXS;
		} or die "->json_request requires the JSON::MaybeXS module, which 
n$@";
		$json = JSON::MaybeXS->new;
	};
	$self->request(
		$cmd,
		$json->encode($args),
		content_type => 'application/json',
	)->then(sub {
		my $data = shift;
		eval {
			Future->done($json->decode
($data))
		} or do {
			Future->fail("Invalid JSON data: " . $data);
		}
	});
}

sub process_message {
	my ($self, %args) = @_;
	# $log->infof("Have message: %s", join ' ', %args);
	if(my $item = $sel
Dist-Zilla-Plugin-ManifestInRoot ( P/PJ/PJFL/dist-zilla-plugin-manifestinroot/Dist-Zilla-Plugin-ManifestInRoot-0.16.1.tar.gz, PJFL, 2016; MetaCPAN )
Dist-Zilla-Plugin-ManifestInRoot/lib/Dist/Zilla/Plugin/ManifestInRoot.pm ( view source; MetaCPAN )
s
has 'excludes' => is => 'ro', traits => [ 'Array' ],
   default     => sub { [ qw( LICENSE META.json META.yml README SIGNATURE
                              t/00report-metadata.dd t/00report-metadat
Net-Async-AMQP ( T/TE/TEAM/Net-Async-AMQP-2.000.tar.gz, TEAM, 2016; MetaCPAN )
Net-Async-AMQP/lib/Net/Async/AMQP/RPC/Server.pod ( view source; MetaCPAN )
server L<Net::Async::AMQP::Queue> instance.

=head2 json

Returns a L<JSON::MaybeXS> object, for ->encode and ->decode support. This will load L<JSON::MaybeXS> on first call.

=head2 process_message

everal named parameters:

=head2 configure

Applies configuration:

=over 4

=item * json_handler - defines the JSON handlers for each type

=item * handler - defines default handlers

=back

=head1 I
Jmespath ( R/RI/RICHE/Jmespath-0.02.tar.gz, RICHE, 2016; MetaCPAN )
Jmespath/lib/Jmespath/TreeInterpreter.pm ( view source; MetaCPAN )
 warnings;
use Try::Tiny;
use List::Util qw(unpairs);
use Scalar::Util qw(looks_like_number);
use JSON;
use Jmespath::Expression;
use Jmespath::Functions qw(:all);
use Jmespath::AttributeException;
us
eturn $result;
}

=item visit_field(node, value)

Returns the value of a field in the JSON data.

value : the JSON data
node : the AST node being evaluated.

=cut

sub visit_field {
  my ($self, $node
not defined $value;
  # SHEER NEGATIVE ENERGY HACKERY - FORCE NUMBERS TO BE NUMBERS
  # THANK YOU JSON.PM
  $value = 1 * $value if $value =~ /^[-][0-9]+$/;
  return $value;
}

sub visit_index {
  my (

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