Group
Extension

Matches 35358

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/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
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 (
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
OpusVL-AppKit ( N/NE/NEWELLC/OpusVL-AppKit-2.29.tar.gz, NEWELLC, 2017; MetaCPAN )
OpusVL-AppKit/lib/OpusVL/AppKit/Builder.pm ( view source; MetaCPAN )
Controller::Root

        View::AppKitTT
        View::Email
        View::Download
        View::JSON
        View::Excel

    Plugins
        All the standard ones we use as per their documentation.
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
OxdPerlModule ( I/IN/INDERPAL/OxdPerlModule-0.01.tar.gz, INDERPAL, 2017; MetaCPAN )
OxdPerlModule/lib/OxdPackages/OxdClientSocket.pm ( view source; MetaCPAN )
ce;
	use lib './modules';
	use Attribute::Handlers;
	#use strict;
	use warnings;
	use 5.010;
	use JSON::PP;
    use Data::Dumper qw(Dumper);
	use utf8;
	use Encode;
	use File::Basename;
	use warnings;
 => shift,
			
			# @var string $base_url      Base url for log file directory and oxd-rp-setting.json file.
			_base_url => dirname(__FILE__)

	    };
		
		bless $self, $class;
		return $self;
	}  
 
Guardian-OpenPlatform-API ( M/MA/MANWAR/Guardian-OpenPlatform-API-0.09.tar.gz, MANWAR, 2017; MetaCPAN )
Guardian-OpenPlatform-API/lib/Guardian/OpenPlatform/API.pm ( view source; MetaCPAN )


has 'format' => (
    is => 'rw',
    default => sub { 'json' },
    );

=head1 METHODS

=head2 new({ api_key => $key [, format => '(xml|json)'] })

Create a new L<Guardian::OpenPlatform::API> objec
 default format for the data that you get
back from the Guardian. Valid values are 'json' or 'xml'. Default is 'json'.

=back

=head2 content({ qry => $query, [ filter => $filter, format => $fmt ] });
mat

This item is optional. Defines the data format that you want to get back.This can
be either 'json' or 'xml'. If no value is given then the default format  given to
the C<new> method is used.

=ba
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;',
        },
   
OxdPerlModule ( I/IN/INDERPAL/OxdPerlModule-0.01.tar.gz, INDERPAL, 2017; MetaCPAN )
OxdPerlModule/lib/OxdPackages/OxdConfig.pm ( view source; MetaCPAN )
t};
    our $oxdHostPort;
    $oxdHostPort = 'package'; 
    
    bless $self, $class;
    $self->json_read;
    return $self;
}

sub setOpHost {
    #my ( $self, $op_host,$oxd_host_port,$authorizatio
r_values};
}
sub json_read{
	
	my ($self) = @_;
	my $filename = 'oxd-settings.json';
	#my $baseUrl = $self->{_base_url};
	#print $baseUrl;
	my $configOBJECT;
	if (open (my $configJSON, $filename)){
		
;
		my $json = JSON::PP->new;
		$configOBJECT = $json->decode(<$configJSON>);
		  
		if(!$configOBJECT->{authorization_redirect_uri}){
			my $defaultOxdSettingsJson = 'oxd-rp-settings-test.json';
			i
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,
    
Stepford-Grapher ( M/MA/MAXMIND/Stepford-Grapher-1.01.tar.gz, MAXMIND, 2017; MetaCPAN )
Stepford-Grapher/lib/Stepford/Grapher/Renderer/Graphviz.pm ( view source; MetaCPAN )
$ext;
}

# TODO: Make this configurable from the command line, either by accepting some
# sort of JSON-as-command-line-argument-flag setting, or by having multiple
# attributes that *are* individually
Test-Dist-Zilla ( V/VD/VDB/Test-Dist-Zilla-v0.4.4.tar.gz, VDB, 2016; MetaCPAN )
Test-Dist-Zilla/lib/Test/Dist/Zilla/Build.pm ( view source; MetaCPAN )
 Plugins to use.
#pod             'GatherDir',
#pod             'Manifest',
#pod             'MetaJSON',
#pod         ],
#pod         files => {                          # Files to add.
#pod          
      # Expected content of MANIFEST.
#pod                 'MANIFEST',
#pod                 'META.json',
#pod                 'dist.ini',
#pod                 'lib/Dummy.pm',
#pod             ],
#pod 
              # Plugins to use.
            'GatherDir',
            'Manifest',
            'MetaJSON',
        ],
        files => {                          # Files to add.
            'lib/Dummy.p
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
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 
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
Dancer-SearchApp ( C/CO/CORION/Dancer-SearchApp-0.06.tar.gz, CORION, 2016; MetaCPAN )
Dancer-SearchApp/lib/Dancer/SearchApp/IndexSchema.pm ( view source; MetaCPAN )
;
use Exporter 'import';
use Data::Dumper;
use Promises 'deferred';

use JSON::MaybeXS;
my $true = JSON->true;
my $false = JSON->false;

=head1 NAME

Dancer::SearchApp::IndexSchema - schema definition
Dancer-SearchApp ( C/CO/CORION/Dancer-SearchApp-0.06.tar.gz, CORION, 2016; MetaCPAN )
Dancer-SearchApp/lib/CORION/Apache/Tika/Connection/AEHTTP.pm ( view source; MetaCPAN )
(
                  "Content-Length" => $content_size,
                  "Accept" => 'application/json,text/plain',
                  @headers
                 );

    my $p = deferred;
    http_reque
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
Dancer-SearchApp ( C/CO/CORION/Dancer-SearchApp-0.06.tar.gz, CORION, 2016; MetaCPAN )
Dancer-SearchApp/lib/CORION/Apache/Tika/Connection.pm ( view source; MetaCPAN )
on;
use strict;
use Moo::Role;
use JSON::XS;
use vars qw($VERSION);
$VERSION = '0.06';

sub decode_response {
    my( $self, $body ) = @_;
    
    return decode_json( $body );
}

sub process_response
nd $code <= 209 ) {
        if ( defined $body and length $body ) {
            # Let's hope it's JSON
            $body = $self->decode_response($body)
                if $is_encoded;
            ret

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