Group
Extension

Matches 35359

Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Plugin/SinglePage.pm ( view source; MetaCPAN )
e_url', { 'continuation':{}, 'actions':{}, 'fragments':[{'mode':'Replace','args':@{[ Jifty::JSON::encode_json($args->{parameters})]},'region':'__page','path':'$url'}],'action_arguments':{}}, true);},
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/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;
Hash-Persistent ( M/MM/MMCLERIC/Hash-Persistent-1.02.tar.gz, MMCLERIC, 2015; MetaCPAN )
Hash-Persistent/lib/Hash/Persistent.pm ( view source; MetaCPAN )

use autodie qw( open close chmod rename );

use Data::Dumper;
use Storable qw(thaw nfreeze);
use JSON;
use Carp;

use Lock::File 1.01 qw(lockfile);

my %defaults = (
    read_only => 0,
    auto_comm
rmat} eq 'auto';
        } elsif ($str =~ /^{/) {
            $self = JSON->new->decode($str);
            $_self->{format} = 'json' if $_self->{format} eq 'auto';
        }
        else {
           
t} = 'storable' if $_self->{format} eq 'auto';
        }
    } else {
        $_self->{format} = 'json' if $_self->{format} eq 'auto'; # default format for new files
        $self = {};
    }

    ble
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() {
            
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}) {
    
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/Script/Po.pm ( view source; MetaCPAN )
ct::Plugin::PPI' => ['pm','pl'],
            'tt2' => [ ],
            'perl' => ['pl','pm','js','json'],
            'mason' => [ ] ,
        },
        verbose => 1,
);

use constant USE_GETTEXT_STY
ct/$lang.json";
        $logger->info("Generating $file");
        open my $fh, '>', $file or die "$file: $!";

        no strict 'refs';
        print $fh
            Jifty::JSON::encode_json( { map 
 with
   --dir              Additional directories to extract from
   --js               Generate json files from the current po files

   --help             brief help message
   --man              f
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->
Dancer-Plugin-Test-Jasmine ( Y/YA/YANICK/Dancer-Plugin-Test-Jasmine-0.2.0.tar.gz, YANICK, 2015; MetaCPAN )
Dancer-Plugin-Test-Jasmine/lib/Dancer/Plugin/Test/Jasmine/Results.pm ( view source; MetaCPAN )
on 0.2.0

=head1 SYNOPSIS

    use strict;
    use warnings;

    use Test::More;

    use JSON qw/ from_json /;

    use Test::TCP;
    use WWW::Mechanize::PhantomJS;
    use Dancer::Plugin::Test::Ja
;

            $mech->get("http://localhost:$port?test=hello");

            jasmine_results from_json
                $mech->eval_in_page('jasmine.getJSReportAsString()'; 
        },
        server =
Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Manual/jQueryMigrationGuide.pod ( view source; MetaCPAN )


=head2 JSON

jQuery does not ship with the JSON stringify function, but since it
neither altered the native Array, nor defined its own Hash, it's
acceptable and preferred to just use C<JSON.stringif
y> from C<json.js>.

From:

    // obj need to be one of those objects defined in C<prototype.js>
    obj.toJSON();

To:

    JSON.stringify( obj )

=head2 Effects

jQuery has a small set of default e
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
Jifty ( A/AL/ALEXMV/Jifty-1.50430.tar.gz, ALEXMV, 2015; MetaCPAN )
Jifty/lib/Jifty/Manual/Glossary.pod ( view source; MetaCPAN )
his most often comes from the browser as query
parameters, but may come from other sources as a L<JSON> or L<YAML> POST
request.  The answer to a request is a L</response>.  See L<Jifty::Request>.

=i
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
Dist-Zilla-Plugin-ReportVersions-Tiny ( D/DO/DOLMEN/Dist-Zilla-Plugin-ReportVersions-Tiny-1.12.tar.gz, DOLMEN, 2015; MetaCPAN )
Dist-Zilla-Plugin-ReportVersions-Tiny/lib/Dist/Zilla/Plugin/ReportVersions/Tiny.pm ( view source; MetaCPAN )
 as you might expect if normally C<use>d.

=item B<include>

  [ReportVersions::Tiny]
  include = JSON:PP 2.27103
  include = Path::Class
  include = Some::Thing = 1.1

Include extra modules in versio
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
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
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
App-PAIA ( V/VO/VOJ/App-PAIA-0.30.tar.gz, VOJ, 2015; MetaCPAN )
App-PAIA/lib/App/PAIA/Command.pm ( view source; MetaCPAN )
5.10;

our $VERSION = '0.30';

use App::Cmd::Setup -command;
use App::PAIA::Agent;
use App::PAIA::JSON;
use App::PAIA::File;
use URI::Escape;
use URI;

# TODO: move option handling to App::PAIA

# Imp
 my ($response, $json) = $self->agent->request( $method, $url, $param, %headers );

    # handle request errors
    if (ref $json and defined $json->{error}) {
        my $msg = $json->{error};
      
  if (defined $json->{error_description}) {
            $msg .= ': '.$json->{error_description};
        }
        die "$msg\n";
    }

    if ($response->{status} ne '200') {
        my $msg = $respo
Catalyst-Model-DataHash ( J/JJ/JJNAPIORK/Catalyst-Model-DataHash-0.001.tar.gz, JJNAPIORK, 2015; MetaCPAN )
Catalyst-Model-DataHash/lib/Catalyst/Model/DataHash.pm ( view source; MetaCPAN )
it!"
      unless $self->exists($key);
  }

  return $self->$orig($key, $maybe_value);
};

sub TO_JSON { +{shift->elements} }

sub AUTOLOAD {
  my ($self, @args) = @_;
  my $key = our $AUTOLOAD;
  $ke
::Perl::Collection::Hash>
and addes a bit of error checking and a method it ease integration with JSON encoders.

This is a 'per-request' Catalyst model, which means that each new request can get one
 original will be the same references in the clone.

=head2 TO_JSON

Returns a hashref of all the existing data suitable to send to a JSON serializer.

=head1 SEE ALSO

L<Catalyst>, L<Data::Perl>.

=h

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