Group
Extension

Matches 35358

Positron ( B/BD/BDEUTSCH/Positron-v0.1.3.tar.gz, BDEUTSCH, 2014; MetaCPAN )
Positron/lib/Positron/Handler/ArrayRef.pm ( view source; MetaCPAN )
es via filename.

If C<$filename> ends in C<.json> or C<.js>, the file is assumed to be in JSON
format, and will be parsed with a freshly C<require>d C<JSON> module.

Otherwise, it is assumed to be an
lename (Storable / JSON / eval?)
    if ($filename =~ m{ \. (json|js) $ }xms) {
        require JSON; # should use JSON::XS if available
        require File::Slurp;
        my $json = File::Slurp::re
ad_file($filename);
        return JSON->new->utf8->allow_nonref->decode($json);
    } else {
        # Storable
        require Storable;
        my $dom = Storable::retrieve($filename);
        retu
Mojolicious-Plugin-AdvancedMod ( G/GR/GRISHKOV/Mojolicious-Plugin-AdvancedMod-0.38.tar.gz, GRISHKOV, 2014; MetaCPAN )
Mojolicious-Plugin-AdvancedMod/README.pod ( view source; MetaCPAN )
s into a hash and multi-hash

=head2 L<Mojolicious::Plugin::AdvancedMod::Configurator>

Load YAML/JSON config, encapsulation, change 'templates_path' && 'static_path' by MOJO_MODE/config. 

=head2 L<M
Haineko ( A/AK/AKXLIX/Haineko-0.2.16.tar.gz, AKXLIX, 2014; MetaCPAN )
Haineko/lib/Haineko/SMTPD/Relay/SendGrid.pm ( view source; MetaCPAN )
::SMTPD::Relay';
use strict;
use warnings;
use Furl;
use Try::Tiny;
use Time::Piece;
use Haineko::JSON;
use Haineko::SMTPD::Response;
use Encode;

use constant 'SENDGRID_ENDPOINT' => 'sendgrid.com';
u
se->new( %$r ) );
        return 0
    }

    my $sendgridep = sprintf( "https://%s/api/mail.send.json", SENDGRID_ENDPOINT );
    my $parameters = {
        'to'        => $self->{'rcpt'},
        'fr
,
        'x-smtpapi' => q(),
    };

    my $usedheader = [ 'Date', 'Subject', 'From' ];
    my $jsonheader = {};
    my $identifier = [ split( '@', $self->{'head'}->{'Message-Id'} ) ]->[0];

    for
Haineko ( A/AK/AKXLIX/Haineko-0.2.16.tar.gz, AKXLIX, 2014; MetaCPAN )
Haineko/lib/Haineko/SMTPD/Milter/Nyaa.pm ( view source; MetaCPAN )
dsn is 5.6.0
in this method.

=head4 C<B<EMAIL_BODY>>

Value defined in "body" field in HTTP POST JSON data.

=head1 SEE ALSO

https://www.milter.org/developers/api/

=head1 REPOSITORY

https://github
Haineko ( A/AK/AKXLIX/Haineko-0.2.16.tar.gz, AKXLIX, 2014; MetaCPAN )
Haineko/lib/Haineko/SMTPD/Milter/Example.pm ( view source; MetaCPAN )
codes is 521 in this method.

=head4 C<B<HELO_HOST>>

Value defined in C<ehlo> field in HTTP POST JSON data, which should be the domain
name of the sending host or IP address enclosed square brackets.
 5.1.8
in this method.

=head4 C<B<ENVELOPE_SENDER>>

Value defined in C<mail> field in HTTP POST JSON data, which should be the valid
email address.


=head2 C<B<rcpt( I<Haineko::SMTPD::Response>, I<
1
in this method.

=head4 C<B<ENVELOPE_RECIPIENTS>>

Values defined in C<rcpt> field in HTTP POST JSON data, which should be the 
valid email address.


=head2 C<B<head( I<Haineko::SMTPD::Response>, I
libqbit-perl ( S/SV/SVISTUNOV/libqbit-perl_0.6.tar.gz, SVISTUNOV, 2014; MetaCPAN )
libqbit-perl/lib/qbit/StringUtils.pm ( view source; MetaCPAN )
use JSON::XS ();
use POSIX qw(locale_h);

BEGIN {
    our (@EXPORT, @EXPORT_OK);

    @EXPORT = qw(
      html_encode html_decode uri_escape check_email idn_to_unicode get_domain to_json from_json for
e {
        return;
    }
}

=head2 to_json

B<Arguments:>

=over

=item

B<$data> - scalar.

=back

B<Return value:> string, C<$data> as JSON.

=cut

sub to_json($;%) {
    my ($data, %opts) = @_;

 
   my $res;

    if ($opts{'pretty'}) {
        $res = JSON::XS->new->utf8->allow_nonref->pretty->encode($data);
    } else {
        $res = JSON::XS->new->utf8->allow_nonref->encode($data);
    }

  
Mojolicious-Plugin-AdvancedMod ( G/GR/GRISHKOV/Mojolicious-Plugin-AdvancedMod-0.38.tar.gz, GRISHKOV, 2014; MetaCPAN )
Mojolicious-Plugin-AdvancedMod/lib/Mojolicious/Plugin/AdvancedMod.pm ( view source; MetaCPAN )
s into a hash and multi-hash

=head2 L<Mojolicious::Plugin::AdvancedMod::Configurator>

Load YAML/JSON config, encapsulation, change 'templates_path' && 'static_path' by MOJO_MODE/config. 

=head2 L<M
Mojolicious-Plugin-AdvancedMod ( G/GR/GRISHKOV/Mojolicious-Plugin-AdvancedMod-0.38.tar.gz, GRISHKOV, 2014; MetaCPAN )
Mojolicious-Plugin-AdvancedMod/lib/Mojolicious/Plugin/AdvancedMod/Configurator.pm ( view source; MetaCPAN )
e} ) {
        foreach my $param ( keys %{$conf} ) {
          next if $conf->{$param} !~ /\.(yml|json)$/;
          $conf->{$param} = _load_file( $conf->{$param}, $mode );
        }
      }

      if
faults( switch_config => $conf );

    $self->app->log->debug( "** Configurator config: " . Mojo::JSON->new->encode( $conf ) );

    if ( $conf->{_err} ) {
      $self->app->log->error( "** Configurat
 my $ext = shift;
  my %lst = (
    yml  => [qw( YAML::XS YAML YAML::Tiny )],
    json => [qw( JSON::XS JSON Mojo::JSON )]
  );

  foreach my $pkg ( @{ $lst{$ext} } ) {
    eval "use $pkg";
    if ( !
WebService-SyoboiCalendar ( H/HA/HAKOBE/WebService-SyoboiCalendar-0.02.tar.gz, HAKOBE, 2014; MetaCPAN )
WebService-SyoboiCalendar/lib/WebService/SyoboiCalendar/API.pm ( view source; MetaCPAN )
use JSON::XS;
use Web::Query;

use WebService::SyoboiCalendar::Error;
use WebService::SyoboiCalendar::API::Search;

Readonly my $API_RSS2  => "http://cal.syoboi.jp/rss2.php";
Readonly my $API_JSON  =>
 "http://cal.syoboi.jp/json.php";
Readonly my $API_LOGIN => "http://cal.syoboi.jp/usr";

has ua => (
    is => 'ro',
    default => sub { 
        my $ua = LWP::UserAgent->new;
        $ua->cookie_jar
s->is_error;
    $res;
}

sub get_json {
    my ($self, $url, $args) = @_;
    my $res = $self->get($url, $args);
    my $json = decode_json($res->content);
    $json;
}

sub _param {
    args_pos my 
Getopt-Compact-WithCmd ( X/XA/XAICRON/Getopt-Compact-WithCmd-0.22.tar.gz, XAICRON, 2014; MetaCPAN )
Getopt-Compact-WithCmd/lib/Getopt/Compact/WithCmd.pm ( view source; MetaCPAN )
se JSON;
  use Data::Dumper;

  Getopt::Compact::WithCmd->add_type(JSON => Str => sub { decode_json(shift) });
  my $go = Getopt::Compact::WithCmd->new(
      global_struct => {
          from_json =>
 {
              type => 'JSON',
          },
      },
  );
  my $data = $go->opts->{from_json};
  print Dumper $data;

  # will run cmd:
  $ ./add_type.pl --from_json '{"foo":"bar"}'
  $VAR1 = {
    
Jubatus ( O/OV/OVERLAST/Jubatus-0.0.1_03.tar.gz, OVERLAST, 2014; MetaCPAN )
Jubatus/tmpl/classifier_client.pod ( view source; MetaCPAN )
er_name - String value to uniquely identify a task in the ZooKeeper
      cluster

Output:

    - JSON file formated string - Returns a server configuration from a server.
      This configuration is 
Jubatus ( O/OV/OVERLAST/Jubatus-0.0.1_03.tar.gz, OVERLAST, 2014; MetaCPAN )
Jubatus/lib/Jubatus/Recommender/Client.pm ( view source; MetaCPAN )
longing to the
cluster which execute the $cluster_name tasks.

Input:

    - none

Output:

    - JSON file formated string - Returns a server configuration from a server.
      This configuration is 
Jubatus ( O/OV/OVERLAST/Jubatus-0.0.1_03.tar.gz, OVERLAST, 2014; MetaCPAN )
Jubatus/lib/Jubatus/Stat/Client.pm ( view source; MetaCPAN )
er_name - String value to uniquely identify a task in the ZooKeeper
      cluster

Output:

    - JSON file formated string - Returns a server configuration from a server.
      This configuration is 
Jubatus ( O/OV/OVERLAST/Jubatus-0.0.1_03.tar.gz, OVERLAST, 2014; MetaCPAN )
Jubatus/lib/Jubatus/Graph/Client.pm ( view source; MetaCPAN )
er_name - String value to uniquely identify a task in the ZooKeeper
      cluster

Output:

    - JSON file formated string - Returns a server configuration from a server.
      This configuration is 
Jubatus ( O/OV/OVERLAST/Jubatus-0.0.1_03.tar.gz, OVERLAST, 2014; MetaCPAN )
Jubatus/lib/Jubatus/Recommender.pm ( view source; MetaCPAN )
er_name - String value to uniquely identify a task in the ZooKeeper
      cluster

Output:

    - JSON file formated string - Returns a server configuration from a server.
      This configuration is 
Jubatus ( O/OV/OVERLAST/Jubatus-0.0.1_03.tar.gz, OVERLAST, 2014; MetaCPAN )
Jubatus/lib/Jubatus/Regression/Client.pm ( view source; MetaCPAN )
er_name - String value to uniquely identify a task in the ZooKeeper
      cluster

Output:

    - JSON file formated string - Returns a server configuration from a server.
      This configuration is 
Jubatus ( O/OV/OVERLAST/Jubatus-0.0.1_03.tar.gz, OVERLAST, 2014; MetaCPAN )
Jubatus/lib/Jubatus/Anomaly/Client.pm ( view source; MetaCPAN )
er_name - String value to uniquely identify a task in the ZooKeeper
      cluster

Output:

    - JSON file formated string - Returns a server configuration from a server.
      This configuration is 
Plack-App-DAIA ( V/VO/VOJ/Plack-App-DAIA-0.55.tar.gz, VOJ, 2014; MetaCPAN )
Plack-App-DAIA/lib/Plack/App/DAIA.pm ( view source; MetaCPAN )
'; #VERSION
use v5.10.1;

use parent 'Plack::Component';
use LWP::Simple qw(get);
use Encode;
use JSON;
use DAIA;
use Scalar::Util qw(blessed);
use Try::Tiny;
use Plack::Util::Accessor qw(xslt root wa
is
returned in. By default the formats C<xml> (DAIA/XML, the default), C<json>
(DAIA/JSON), and C<rdfjson> (DAIA/RDF in RDF/JSON) are supported. Additional
RDF serializations (C<rdfxml>, C<turtle>, an
Plack-App-DAIA ( V/VO/VOJ/Plack-App-DAIA-0.55.tar.gz, VOJ, 2014; MetaCPAN )
Plack-App-DAIA/lib/Plack/App/DAIA/Test.pm ( view source; MetaCPAN )
k::App::DAIA;
use Scalar::Util qw(reftype blessed);
use HTTP::Request::Common;
use Test::JSON::Entails;
use JSON;

sub test_daia {
    my $app = daia_app(shift) || do {
        __PACKAGE__->builder->o
=');
        $app = sub {
            my $id = shift;
            my $url = $baseurl.$id."&format=json";
            my @daia = eval { DAIA->parse($url) };
            if (!@daia) {
                $@
al $Test::Builder::Level = $Test::Builder::Level + 2;
            my $json = decode_json( $daia->json );
            entails $json, $expected, $test_name;
        }
        return $daia;
    }
}

1;

Jubatus ( O/OV/OVERLAST/Jubatus-0.0.1_03.tar.gz, OVERLAST, 2014; MetaCPAN )
Jubatus/tmpl/anomaly_client.pod ( view source; MetaCPAN )
er_name - String value to uniquely identify a task in the ZooKeeper
      cluster

Output:

    - JSON file formated string - Returns a server configuration from a server.
      This configuration is 

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