Group
Extension

Matches 35358

Net-Stripe-Simple ( A/AB/ABEVERLEY/Net-Stripe-Simple-0.005.tar.gz, ABEVERLEY, 2021; MetaCPAN )
Net-Stripe-Simple/lib/Net/Stripe/Simple/Data.pm ( view source; MetaCPAN )
ta;
$Net::Stripe::Simple::Data::VERSION = '0.005';
# ABSTRACT: collection of methods to augment a JSON hash


use v5.10;
use strict;
use warnings;

use Scalar::Util qw(refaddr);

use overload '""' => 
f =~ /^JSON/) {
        return "$v";
    } else {
        return $v;
    }
}

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

Net::Stripe::Simple::Data - collection of methods to augment a JSON hash
       # and another
      }
  );

=head1 DESCRIPTION

L<Net::Stripe::Simple::Data> is simply a L<JSON> hash with a little magic added
to it. Principally, it will autoload any attribute name into an a
Net-Stripe-Simple ( A/AB/ABEVERLEY/Net-Stripe-Simple-0.005.tar.gz, ABEVERLEY, 2021; MetaCPAN )
Net-Stripe-Simple/lib/Net/Stripe/Simple.pm ( view source; MetaCPAN )
se64 qw(encode_base64);
use URI::Escape qw(uri_escape);
use Scalar::Util qw(reftype blessed);
use JSON ();
use Devel::StackTrace;

use Net::Stripe::Simple::Data;
use Net::Stripe::Simple::Error;

our @
equest($req);
}

# implements PHP convention for encoding "dictionaries" (why don't they accept
# json bodies in posts?)
sub _encode_params {
    my $args = shift;
    my @components;
    for my $key 
       $value =    # JSON boolean stringification magic has been erased
              blessed $value && $value->isa(ref(true())) # hack to work around inheritance issues with JSON booleans
           
Template-Flute ( H/HO/HORNBURG/Template-Flute-0.027.tar.gz, HORNBURG, 2021; MetaCPAN )
Template-Flute/lib/Template/Flute/Iterator.pm ( view source; MetaCPAN )
 License as published
by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

=head1 SEE ALSO

L<Template::Flute::Iterator::JSON>

=cut

1;
Template-Flute ( H/HO/HORNBURG/Template-Flute-0.027.tar.gz, HORNBURG, 2021; MetaCPAN )
Template-Flute/lib/Template/Flute/Filter/JsonVar.pm ( view source; MetaCPAN )
ackage Template::Flute::Filter::JsonVar;

use strict;
use warnings;

use base 'Template::Flute::Filter';
use JSON;

=head1 NAME

Template::Flute::Filter::JsonVar - JSON to Javascript variable filter

structure or a JSON string and returns Javascript
which parses the JSON string with Jquery and assigns it to
the variable C<json>.

The following example shows you how to inject the JSON variable
into
t/javascript" id="vars"></script>

XML Specification:

    <value name="jsvars" id="vars" filter="json_var"/>

Values for L<Template::Flute>:

    Template::Flute->new(...,
        values => {jsvars =
Mojolicious-Plugin-HostMeta ( A/AK/AKRON/Mojolicious-Plugin-HostMeta-0.26.tar.gz, AKRON, 2021; MetaCPAN )
Mojolicious-Plugin-HostMeta/lib/Mojolicious/Plugin/HostMeta.pm ( view source; MetaCPAN )
tablish /.well-known/host-meta route
  my $route = $app->routes->any( $WK_PATH => [format => [qw!json xml jrd xrd!]] );

  # Define endpoint
  $route->endpoint('host-meta');

  # Set route callb
Tapper-API ( T/TA/TAPPER/Tapper-API-5.0.2.tar.gz, TAPPER, 2021; MetaCPAN )
Tapper-API/lib/Tapper/API/Plugin/Unittest.pm ( view source; MetaCPAN )
renderer->default_format('json');


        my $data;
        if ($self->tx->req->body) {
                require JSON::XS;
                $data = eval{JSON::XS::decode_json($self->tx->req->body)};
 
               if ($@) {
                        $self->render(json => {
                                               error => $@
                                              },
                   
foo} eq 'bar') {
                $self->render(json => {
                                       error => "Can not find key 'foo' with value 'bar' in JSON body",
                                      }
App-Glacier ( S/SG/SGRAY/App-Glacier-2.13.tar.gz, SGRAY, 2021; MetaCPAN )
App-Glacier/lib/App/Glacier/DB.pm ( view source; MetaCPAN )
package App::Glacier::DB;
use strict;
use warnings;
use JSON;
use Carp;
use App::Glacier::Timestamp;
use parent 'Exporter';

use constant {
    ENCODE => 0,
    DECODE => 1
};

my %transcode = (
    '
ecoder
	\&Storable::thaw
    ],
    'json' => [
	# Encoder
	sub { JSON->new->convert_blessed(1)->encode(shift) },
	# Decoder
	sub { JSON->
		  new->
		  filter_json_object(sub { timestamp_deserialize 
Tapper-API ( T/TA/TAPPER/Tapper-API-5.0.2.tar.gz, TAPPER, 2021; MetaCPAN )
Tapper-API/lib/Tapper/API/Plugin/API.pm ( view source; MetaCPAN )
:Plugin::API::VERSION = '5.0.2';
use warnings;
use strict;
use 5.010;

use Mojolicious::Lite;
use JSON::XS;
use Tapper::Cmd::Testplan;
use Tapper::Cmd::Host;
use Tapper::Cmd::Testrun;
use Tapper::Mode
      my $room = $self->param('room');
        my $ip = $self->param('ip');
        $self->render(json => {id => 12}, status => 201);
};

put 'host-new/name/:name' => sub {
        my $self = shift;
 

        $self->render(json => {id => 12}, status => 201);
};

put 'testrun-start/:testrun' => sub {
        my $self = shift;
        $self->app->renderer->default_format('json');


        my $data;
App-Glacier ( S/SG/SGRAY/App-Glacier-2.13.tar.gz, SGRAY, 2021; MetaCPAN )
App-Glacier/lib/App/Glacier/DateTime.pm ( view source; MetaCPAN )
lf) if ref($fmt) eq 'CODE';
	return $self->strftime($fmt);
    } else {
	croak "unknown canned format $fmt"
    }
}

sub TO_JSON {
    my $self = shift;
    return $self->canned_format('standard');
}
Mojolicious-Plugin-PlackMiddleware ( J/JA/JAMADAM/Mojolicious-Plugin-PlackMiddleware-0.39.tar.gz, JAMADAM, 2021; MetaCPAN )
Mojolicious-Plugin-PlackMiddleware/README.pod ( view source; MetaCPAN )
 => $FindBin::Bin
        },
    ]);

Plack::Middleware::JSONP

    $self->plugin('plack_middleware', [
        JSONP => {callback_key => 'json.p'},
    ]);

=head1 AUTHOR

Sugama Keita, E<lt>sugama@j
App-Glacier ( S/SG/SGRAY/App-Glacier-2.13.tar.gz, SGRAY, 2021; MetaCPAN )
App-Glacier/lib/App/Glacier/DB/GDBM.pm ( view source; MetaCPAN )
 => { default => 72000, check => \&App::Glacier::Command::ck_number },
	encoding => { default => 'json' }
);

sub configtest {
    my ($class, $cfg, @path) = @_;
    $cfg->lint(\%lexicon, @path);
}

#
App-Glacier ( S/SG/SGRAY/App-Glacier-2.13.tar.gz, SGRAY, 2021; MetaCPAN )
App-Glacier/lib/App/Glacier/Bre.pm ( view source; MetaCPAN )
cier::HttpCatch;
use App::Glacier::Signature;
use Carp;
use version 0.77;
use LWP::UserAgent;
use JSON;

sub new {
    my ($class, %opts) = @_;
    my $region = (delete $opts{region} || _get_instore_r
. $istore_document_path);
    unless ($response->is_success) {
	return undef;
    }
    my $doc = JSON->new->decode($response->decoded_content);
    return $doc->{region};
}

sub _get_instore_creds {
esponse = $ua->get($url);
    unless ($response->is_success) {
	return undef;
    }
    my $doc = JSON->new->decode($response->decoded_content);
    return ($doc->{AccessKeyId}, $doc->{SecretAccessKey
Tapper-API ( T/TA/TAPPER/Tapper-API-5.0.2.tar.gz, TAPPER, 2021; MetaCPAN )
Tapper-API/lib/Tapper/API/Plugin/Integrationtest.pm ( view source; MetaCPAN )
egrationtest::VERSION = '5.0.2';
use warnings;
use strict;
use 5.010;

use Mojolicious::Lite;
use JSON::XS;
use Tapper::Cmd::Testplan;
use Tapper::Cmd::Host;
use Tapper::Cmd::Testrun;
use Tapper::Mode
      my $room = $self->param('room');
        my $ip = $self->param('ip');
        $self->render(json => {id => 12}, status => 201);
};

put 'host-new/name/:name' => sub {
        my $self = shift;
 

        $self->render(json => {id => 12}, status => 201);
};

put 'testrun-start/:testrun' => sub {
        my $self = shift;
        $self->app->renderer->default_format('json');


        my $data;
Mojolicious-Plugin-PlackMiddleware ( J/JA/JAMADAM/Mojolicious-Plugin-PlackMiddleware-0.39.tar.gz, JAMADAM, 2021; MetaCPAN )
Mojolicious-Plugin-PlackMiddleware/lib/Mojolicious/Plugin/PlackMiddleware.pm ( view source; MetaCPAN )
 => $FindBin::Bin
        },
    ]);

Plack::Middleware::JSONP

    $self->plugin('plack_middleware', [
        JSONP => {callback_key => 'json.p'},
    ]);

=head1 AUTHOR

Sugama Keita, E<lt>sugama@j
Mojolicious-Plugin-DataTables ( G/GD/GDT/Mojolicious-Plugin-DataTables-2.01.tar.gz, GDT, 2021; MetaCPAN )
Mojolicious-Plugin-DataTables/lib/Mojolicious/Plugin/DataTables/SSP/Results.pm ( view source; MetaCPAN )
s;

use Mojo::Base -base;
use Mojo::JSON qw(encode_json);

our $VERSION = '2.01';

has 'draw';
has 'records_total';
has 'records_filtered';
has 'data';

sub TO_JSON {

    my ($self) = @_;

    return
lugin('DataTables');

    # Mojolicious::Lite
    plugin 'DataTables';

    [...]

    $c->render(json => $c->datatable->ssp_results(
        draw             => 1,
        data             => \@resul
wing methods.

=head2 draw

=head2 records_total

=head2 records_filtered

=head2 data

=head2 TO_JSON


=head1 SEE ALSO

L<Mojolicious>, L<Mojolicious::Guides>, L<https://mojolicious.org>, L<Mojolici
Mojolicious-Plugin-DataTables ( G/GD/GDT/Mojolicious-Plugin-DataTables-2.01.tar.gz, GDT, 2021; MetaCPAN )
Mojolicious-Plugin-DataTables/lib/Mojolicious/Plugin/DataTables.pm ( view source; MetaCPAN )
ge Mojolicious::Plugin::DataTables;

use Mojo::Base 'Mojolicious::Plugin';
use Mojo::JSON qw(decode_json encode_json true false);
use Mojo::Collection;
use Mojo::DOM::HTML;
use Mojo::ByteStream;
use M
DO

    if ($debug) {
        $log->debug("Query: $stmt");
        $log->debug( "Bind: " . encode_json \@bind );
    }

    my $query = $sql->db->query( $stmt, @bind );

    my @results = ();

    whi
$log->debug( "Bind Total: " . encode_json \@bind_total );
        $log->debug("Query Filtered: $stmt_filter");
        $log->debug( "Bind Filtered: " . encode_json \@bind_filter );
    }

    my $tota
Twitter-Text ( U/UT/UTGWKK/Twitter-Text-0.08.tar.gz, UTGWKK, 2021; MetaCPAN )
Twitter-Text/lib/Twitter/Text/Configuration.pm ( view source; MetaCPAN )
package
    Twitter::Text::Configuration; # hide from PAUSE
use strict;
use warnings;
use JSON ();
use Path::Tiny qw(path);
use File::Share qw(dist_file);

# internal use only, do not use this module 
che{$config_name};

    return $config_cache{$config_name} ||= JSON::decode_json(path(dist_file('Twitter-Text', "config/$config_name.json"))->slurp);
}

sub V1 {
    return configuration_from_file('v1
App-Glacier ( S/SG/SGRAY/App-Glacier-2.13.tar.gz, SGRAY, 2021; MetaCPAN )
App-Glacier/lib/App/Glacier/Job/InventoryRetrieval.pm ( view source; MetaCPAN )
   my $jid = $self->glacier->Initiate_inventory_retrieval(
		          $self->vault,
		          'JSON',
		          "Inventory retrieval for vault ".$self->vault
              );
    if ($self->glaci
Template-Alloy ( R/RH/RHANDOM/Template-Alloy-1.022.tar.gz, RHANDOM, 2021; MetaCPAN )
Template-Alloy/lib/Template/Alloy/TT.pm ( view source; MetaCPAN )
y as possible.  This "simple"
structure could be shared TT implementations in other languages
via JSON or YAML.  You can optionally enable generating Perl code by
setting COMPILE_PERL = 1.

=item

All
Template-Alloy ( R/RH/RHANDOM/Template-Alloy-1.022.tar.gz, RHANDOM, 2021; MetaCPAN )
Template-Alloy/lib/Template/Alloy.pod ( view source; MetaCPAN )
  The AST is composed
only of scalars and arrayrefs and is suitable for sending to
JavaScript via JSON or sharing with other languages.  The parse_tree
method is used for returning this AST.

Once at 

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