Group
Extension

Matches 35358

Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Web/PageRegion.pm ( view source; MetaCPAN )
path default_arguments qualified_name parent region_wrapper lazy loading_path class));
use Jifty::JSON;
use Encode ();

=head2 new PARAMHASH

Creates a new page region.  The possible arguments in the 
t">\n|
            . qq|new Region('| . $self->qualified_name . qq|',|
            . Jifty::JSON::encode_json( \%arguments ) . qq|,| 
            . qq|'| . $self->path . qq|',|
            . ( $self->
JQuery-DataTables-Heavy ( Y/YW/YWATASE/JQuery-DataTables-Heavy-0.04.tar.gz, YWATASE, 2015; MetaCPAN )
JQuery-DataTables-Heavy/lib/JQuery/DataTables/Heavy/Base.pm ( view source; MetaCPAN )
_) =~ s/\A.*\.(?=[^\.]+\.[^\.]+\z)//smx; $s} @{ $self->fields };
    return \@cols;
}

# suppress json warning on { table_name => undef }
sub _build_table_data_default {
    my ($self) = @_;
    my $b
JQuery-DataTables-Heavy ( Y/YW/YWATASE/JQuery-DataTables-Heavy-0.04.tar.gz, YWATASE, 2015; MetaCPAN )
JQuery-DataTables-Heavy/lib/JQuery/DataTables/Heavy/DBI.pm ( view source; MetaCPAN )
cessing by DBI

=head1 SYNOPSIS

  use JQuery::DataTables::Heavy::DBI;
  use DBIx::Handler;
  use JSON::XS;
  use Plack::Request;

  my $handler = DBIx::Hander->new( $dsn, $user, $password, \%attr );
 = q{<img src="/images/details_open.png">};
          }
      },
  );
  my $to_json = $dt->table_data;
  to_json($to_json);


=head1 DESCRIPTION

=head1 Method

=head2 new

=over 4

=item B<dbh> I<req
ptional>

set code ref for decorate aaData

=back

=head2 table_data()
 
 Return table content as json. Evaluates query for global filtering and
 ordering information. The database is queried to colle
SendGrid ( T/TJ/TJENKINS/SendGrid-1.3.tar.gz, TJENKINS, 2015; MetaCPAN )
SendGrid/lib/Email/SendGrid/Transport/REST.pm ( view source; MetaCPAN )
$VERSION = '1.3';

use LWP::UserAgent;
use Mail::Address;
use Sys::Hostname;
use URI::Escape;
use JSON;
use Encode;
use Carp;
use English qw( -no_match_vars ); 
use Data::Dumper qw(Dumper);

sub new
{


  my $self = bless { server => 'api.sendgrid.com',
                     path => '/api/mail.send.json',
                     timeout => 30,
                     @_,
                    }, $class;

  
te=" . uri_escape($date) if ( defined($date) );

  # smtp api header
  my $hdr = $sg->header()->asJSON();
  $hdr = encode($charset, $hdr) if ( utf8::is_utf8($hdr) );

  $query .= "&x-smtpapi=" . uri_e
Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Plugin/I18N.pm ( view source; MetaCPAN )
            Jifty->config->framework('Web')->{StaticRoot},
                "js/dict/$current_lang.json"
            )
        )
      )
    {
        local $/;
        my $inline_dict = <$fh> || '{}';
n.dict_path = '/static/js/dict';
Localization.dict = $inline_dict;
</script>}
        );

    }
    else {
        $self->log->error("Can't find dictionary file $current_lang.json: $!");
    }

}

1;
Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Request.pm ( view source; MetaCPAN )
shift->headers->referer(@_) }
sub user_agent       { shift->headers->user_agent(@_) }

use Jifty::JSON;
use Jifty::YAML;
use Jifty::Web::FileUpload;
use Plack::Util ();

=head1 NAME

Jifty::Request - 
et;
}

=head2 promote

Attempt to fill in the request from any number of various methods --
YAML, JSON, etc.  Falls back to query parameters.  Takes a
L<Plack::Request> object.

=cut

sub promote {
  
appropriate
    if ($data) {
        if ($ct =~ m{^text/x-json}) {
            return $self->from_data_structure(eval{Jifty::JSON::decode_json($data)});
        } elsif ($ct =~ m{^text/x-yaml}) {
    
App-FonBot-Daemon ( M/MG/MGV/App-FonBot-Daemon-0.001.tar.gz, MGV, 2015; MetaCPAN )
App-FonBot-Daemon/lib/App/FonBot/Plugin/Common.pm ( view source; MetaCPAN )
r $VERSION = '0.001';

use v5.14;
use strict;
use warnings;

use parent qw/Exporter/;

use JSON qw/encode_json/;
use Log::Log4perl qw//;

use DB_File qw//;
use Storable qw/freeze thaw/;

use App::FonB
WebService-UrbanDictionary ( W/WO/WOODRUFFW/WebService-UrbanDictionary-2.015.tar.gz, WOODRUFFW, 2015; MetaCPAN )
WebService-UrbanDictionary/lib/WebService/UrbanDictionary/Term.pm ( view source; MetaCPAN )
ebService::UrbanDictionary> objects upon successfully retreiving data from UrbanDictionary.com's 
JSON API.

=head2 Methods

=over 12

=item C<< definition >>

Returns either an array of hashes contai
App-FonBot-Daemon ( M/MG/MGV/App-FonBot-Daemon-0.001.tar.gz, MGV, 2015; MetaCPAN )
App-FonBot-Daemon/lib/App/FonBot/Plugin/HTTPD.pm ( view source; MetaCPAN )
:Status qw/HTTP_BAD_REQUEST HTTP_OK HTTP_NO_CONTENT HTTP_FORBIDDEN HTTP_UNAUTHORIZED/;
use JSON qw/encode_json/;
use Log::Log4perl;
use POE::Component::Server::HTTP qw/RC_OK RC_DENY RC_WAIT/;

use DB_
;

		if (exists $commands{$user}) {
			my $json=encode_json thaw $commands{$user};
			$log->debug("Sending JSON: $json to $user");
			$response->content($json);
			$response->code(HTTP_OK);
			$respon
);

		if (exists $responses{$user}) {
			my $json=encode_json $responses{$user};
			$log->debug("Sending JSON: $json to $user");
			$response->content($json);
			$response->code(HTTP_OK);
			$response
Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Manual/Actions_zhtw.pod ( view source; MetaCPAN )
lso automatically published as web services.
Clients can POST requests, usually using the YAML or JSON request
format.  See C<bin/service> for a trivial generic webservice client.

(XXX TODO More abou
Webqq-Qun ( S/SJ/SJDY/Webqq-Qun-1.5.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Qun/lib/Webqq/Qun.pm ( view source; MetaCPAN )
package Webqq::Qun;
use strict;
use JSON;
use Storable qw(dclone);
use Scalar::Util qw(blessed reftype);
use base qw(Webqq::Qun::Authorize Webqq::Qun::Operate Webqq::Qun::Base);
use HTTP::Cookies;
use
Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Web.pm ( view source; MetaCPAN )
 main.css )]);

__PACKAGE__->external_javascript_libs([]);

__PACKAGE__->javascript_libs([qw(
    json.js
    jquery-1.4.1.js
    iutil.js
    jifty_interface.js
    jquery_noconflict.js
    jquery.jg
Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Action.pm ( view source; MetaCPAN )
->failure(1);
    $self->result->message($message);

    return;
}

=head2 TO_JSON

Returns this action's moniker for JSON serialization.  This is mostly to catch
places where Jifty::Action objects ar
he
C<convert_blessed> option of L<JSON> (through L<Jifty::JSON>) which uses this
method.  Objects without a TO_JSON method cause fatal JSON errors.

=cut

sub TO_JSON { shift->moniker }

=head1 CUSTOM
Test-Deep-YAML ( E/ET/ETHER/Test-Deep-YAML-0.004.tar.gz, ETHER, 2015; MetaCPAN )
Test-Deep-YAML/lib/Test/Deep/YAML.pm ( view source; MetaCPAN )
er' at C<irc.perl.org>.

=head1 SEE ALSO

=over 4

=item *

L<Test::Deep>

=item *

L<Test::Deep::JSON>

=back

=head1 AUTHOR

Karen Etheridge <ether@cpan.org>

=head1 COPYRIGHT AND LICENSE

This soft
App-PAIA ( V/VO/VOJ/App-PAIA-0.30.tar.gz, VOJ, 2015; MetaCPAN )
App-PAIA/lib/App/PAIA/File.pm ( view source; MetaCPAN )
ict;
use v5.10;

our $VERSION = '0.30';

use App::PAIA::JSON;

our %DEFAULT = (
    'config'  => 'paia.json',
    'session' => 'paia-session.json'
);

sub new {
    my $class = shift;
    my $self = b
 $fh, '<', $file) 
        or die "failed to open $type file $file\n";
    $self->{data} = decode_json(<$fh>,$file);
    close $fh;
    
    $self->{logger}->("loaded $type file $file");
    
    $sel
 (my $fh, '>', $file) 
        or die "failed to open $type file $file\n";
    print {$fh} encode_json($self->{data});
    close $fh;

    $self->{logger}->("saved $type file $file");
}

sub purge {
 
Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Web/Menu.pm ( view source; MetaCPAN )
',
        @_
    );

    my $showjs = $args{'show'} ? "menu.show();" : "";
    my $json   = Jifty::JSON::encode_json( $args{'options'} );

    # Bind to a button to show the menu
    my $binding = (d

                // set container?
                var menu = new YAHOO.widget.Menu("$args{id}", $json);
                menu.render();
                menu.subscribe("show", function() {
            
Plack-App-RDF-Files ( V/VO/VOJ/Plack-App-RDF-Files-0.12.tar.gz, VOJ, 2015; MetaCPAN )
Plack-App-RDF-Files/lib/Plack/App/RDF/Files.pm ( view source; MetaCPAN )
TS = (
    ttl     => 'Turtle',
    nt      => 'NTriples',
    n3      => 'Notation3',
    json    => 'RDFJSON',
    rdfxml  => 'RDFXML'
);

has base_dir => (
    is => 'ro', required => 1,
    isa =>
zation format (See L<Plack::Middleware::Negotiate>). Supported
values are C<ttl>, C<nt>, C<n3>, C<json>, and C<rdfxml>.

=back

If an existing resource does not contain triples, the axiomatic triple
C
Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Result.pm ( view source; MetaCPAN )
_serialize_format($self);
    }

    # As the last resort, return the object itself and expect the
    # $accept-specific renderer to format the object as e.g. YAML or JSON data.
    return $o;
}

1;
Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Web/Form/Element.pm ( view source; MetaCPAN )
t fallback method yet.

=back

=cut

use base qw/Jifty::Object Class::Accessor::Fast/;
use Jifty::JSON;

=head2 handlers

The following handlers are supported:

onclick onchange ondblclick onmousedown
;

        if ( @$fragments or ( !$actions || %$actions ) ) {
            my $update_json = Jifty::JSON::encode_json({
                    actions      => $actions,
                    action_argument
$update = $trigger eq "onclick" ? "Jifty.c(event,$update_json,this)"
                                               : "Jifty.update($update_json,this);";
            $string .= "return $update";
     
App-PAIA ( V/VO/VOJ/App-PAIA-0.30.tar.gz, VOJ, 2015; MetaCPAN )
App-PAIA/lib/App/PAIA/Tester.pm ( view source; MetaCPAN )
ode
    stdout_json stderr_json output_json error exit_code
    ));

use Test::More;
use App::Cmd::Tester;
use File::Temp qw(tempdir);
use Cwd;
use App::PAIA;
use JSON::PP qw(encode_json);
use Scalar:
;

sub decode_json {
    my $json = shift;
    $json =~ s/^#.*$//mg;
    JSON::PP::decode_json($json)
}

sub stdout_json() { decode_json($RESULT->stdout) }
sub stderr_json() { decode_json($RESULT->std
err) }
sub output_json() { decode_json($RESULT->output) }

## no critic
eval "sub $_() { \$RESULT->$_ }" for qw(stdout stderr output error exit_code);

our $HTTP_TINY_REQUEST = \&HTTP::Tiny::request;

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