Group
Extension

Matches 35358

OpusVL-SysParams ( A/AL/ALTREUS/OpusVL-SysParams-0.20.tar.gz, ALTREUS, 2017; MetaCPAN )
OpusVL-SysParams/lib/OpusVL/SysParams.pm ( view source; MetaCPAN )
package OpusVL::SysParams;

use warnings;
use strict;
use JSON;
use Data::Munge qw/elem/;

use Moose;

has 'schema' => (isa => 'DBIx::Class::Schema', is => 'ro', required => 1,
    default => sub
    
ltset('SysInfo')->set(@_);
}


sub set_json {
    my $self = shift;
    my $name = shift;
    my $val = shift;
    my $schema = $self->schema;
    my $obj = JSON->new->allow_nonref->decode($val);
    
ame, $obj);
}


sub get_json {
    my $self = shift;
    my $schema = $self->schema;

    my $val = $schema->resultset('SysInfo')->get(@_);
    return if !$val;
    return JSON->new->allow_nonref->enc
BlankOnDev ( Y/YU/YUSRIDEB/BlankOnDev-0.1005.tar.gz, YUSRIDEB, 2017; MetaCPAN )
BlankOnDev/lib/BlankOnDev/Migration/bazaar2GitHub.pm ( view source; MetaCPAN )
ar2GitHub;
use strict;
use warnings FATAL => 'all';

# Import Module :
use Data::Dumper;
use JSON;
use JSON::XS;
use Term::ReadKey;
use Hash::MultiValue;
use BlankOnDev::DateTime;
use BlankOnDev::Util
         my ($new_config) = @_;

            # Create File :
            my $newData_cfg = encode_json($new_config);
            BlankOnDev::Utils::file->create($file_name, $dir_dev, $newData_cfg);
  
         my ($new_config) = @_;

            # Create File :
            my $newData_cfg = encode_json($new_config);
            BlankOnDev::Utils::file->create($file_name, $dir_dev, $newData_cfg);
  
OpusVL-SysParams ( A/AL/ALTREUS/OpusVL-SysParams-0.20.tar.gz, ALTREUS, 2017; MetaCPAN )
OpusVL-SysParams/lib/OpusVL/SysParams/Schema/ResultSet/SysInfo.pm ( view source; MetaCPAN )
 OpusVL::SysParams::Schema::ResultSet::SysInfo;

use Moose;
extends 'DBIx::Class::ResultSet';
use JSON;


sub ordered
{
    my $self = shift;
    my $me = $self->current_source_alias;
    return $self

	my $info = $self->find_or_new({
        name  => $name,
    });

    $info->set_column(value => JSON->new->allow_nonref->encode($value));
    if ($data_type) {
        $info->set_column(data_type =>
lf = shift;
	my $name = shift;

	my $info = $self->find
	({
		name => $name
	});

	return $info ? JSON->new->allow_nonref->decode($info->value) : undef;
}

sub del 
{
	my $self = shift;
	my $name = sh
Alien-GvaScript ( D/DA/DAMI/Alien-GvaScript-1.45.tar.gz, DAMI, 2017; MetaCPAN )
Alien-GvaScript/lib/Alien/GvaScript/Grid.pod ( view source; MetaCPAN )
l_display_here',
        toolbar_container: 'grid_toolbar_will_display_here',
        dto: {VUE: 'JSON'},
        columns: [
            {label: 'Full Name', value: function(e) { 
                retu
ESCRIPTION

Displays a dataset in a grid format.  
Dataset is bound to a JSON datasource retrieved via an AJAX request.  

JSON object has a predefined format that the Grid class understands and rende
ast page correspondingly.

=back

=head1 JSON Datasource

As mentioned before, the Grid expects the JSON datasource object to be of a predefined format.

  json = {
    'liste'  : [
        {'fname': 
Apache-Tika ( R/RI/RIBUGENT/Apache-Tika-0.07.tar.gz, RIBUGENT, 2017; MetaCPAN )
Apache-Tika/lib/Apache/Tika.pm ( view source; MetaCPAN )
strict;
use warnings;

package Apache::Tika;

use Encode qw/decode_utf8/;
use LWP::UserAgent;
use JSON::MaybeXS();

our $VERSION = '0.07';

sub new {
	my ($this, %pars) = @_;

	my $self = bless {}, $t
ua} // LWP::UserAgent->new();
	$self->{url} = $pars{url} // 'http://localhost:9998';
	$self->{json} = JSON::MaybeXS->new();

	return $self;
}

sub _request {
	my ($self, $method, $path, $headers, $bod
	'put',
		'meta',
		{
			'Accept' => 'application/json',
			$contentType? ('Content-type' => $contentType) : ()
		},
		$bytes
	);

	return $self->{json}->decode($meta);
}

sub rmeta {
	my ($self, $byt
Mojar ( N/NI/NICZERO/Mojar-2.201.tar.gz, NICZERO, 2017; MetaCPAN )
Mojar/lib/Mojar/Util.pm ( view source; MetaCPAN )
 exists $INC{$module};

  return undef;
}

sub been_numeric {
  my $value = shift;
  # From Mojo::JSON
  return 1 if B::svref_2object(\$value)->FLAGS & (B::SVp_IOK | B::SVp_NOK)
      and 0 + $value e
Net-Async-Graphite ( C/CH/CHOHAG/Net-Async-Graphite-0.1_1.tar.gz, CHOHAG, 2017; MetaCPAN )
Net-Async-Graphite/lib/Net/Async/Graphite/JSONCodec.pm ( view source; MetaCPAN )
te::JSONCodec;

our $VERSION = '0.1_1';

use v5.14;
use strictures 2;
use Moo::Role;
use Carp;

use JSON ();
use namespace::clean;

=item _json (read-only)

A L<JSON> codec object.

=cut

has _json =>
 is => lazy => init_arg => undef, builder => sub {
  JSON->new->utf8->allow_blessed(1)
};

1;
Net-Async-Graphite ( C/CH/CHOHAG/Net-Async-Graphite-0.1_1.tar.gz, CHOHAG, 2017; MetaCPAN )
Net-Async-Graphite/lib/Net/Async/Graphite/API.pm ( view source; MetaCPAN )
HTTPClient>.

JSON data is decoded using a L<JSON> object handled by
L<Net::Async::Graphite::JSONCodec>.

=cut

with 'Net::Async::Graphite::HTTPClient';

with 'Net::Async::Graphite::JSONCodec';

=head

=item find

=item expand

=item index[.json]

C</metrics/index.json> can be requested with C<$method> of C<index> or
C<index.json> because requiring the C<.json> suffix is silly. Also I
can consider 
llowed_metrics_params{'index.json'} = $allowed_metrics_params{index}; # FFS

sub metrics {
  my $self = shift;
  my ($method, $query, %extra) = @_;
  $method = 'index.json' if $method eq 'index';
  re
Net-Async-Graphite ( C/CH/CHOHAG/Net-Async-Graphite-0.1_1.tar.gz, CHOHAG, 2017; MetaCPAN )
Net-Async-Graphite/lib/Net/Async/Graphite.pm ( view source; MetaCPAN )
ost of the
functionality of C</render>, C</metrics/expand>, C</metrics/find> and
C</metrics/index.json> which is described in detail in
L<Net::Async::Graphite::API>.

There is also support to pass the
BusyBird-Input-Feed ( T/TO/TOSHIOITO/BusyBird-Input-Feed-0.07.tar.gz, TOSHIOITO, 2017; MetaCPAN )
BusyBird-Input-Feed/lib/BusyBird/Input/Feed/Run.pm ( view source; MetaCPAN )
d::Input::Feed::Run;
use strict;
use warnings;
use BusyBird::Input::Feed;
use LWP::UserAgent;
use JSON;
use Carp;

sub run {
    my ($class, %opts) = @_;
    my $download_url = $opts{download_url};
  
put::Feed->new(
        defined($user_agent) ? (user_agent => $user_agent) : ()
    );
    my $json = JSON->new->utf8->ascii;
    my $statuses = _parse_feed($input, $download_url);
    if(defined($lev
->{busybird}{level} = $level;
        }
    }
    my $statuses_json = $json->encode($statuses) . "\n";
    _post_statuses(\$statuses_json, $post_url, $user_agent);
}

sub _parse_feed {
    my ($input,
Alien-GvaScript ( D/DA/DAMI/Alien-GvaScript-1.45.tar.gz, DAMI, 2017; MetaCPAN )
Alien-GvaScript/test/functional/examples.pl ( view source; MetaCPAN )
use strict;
use warnings;

use CGI;
use HTTP::Daemon;
use HTTP::Status;
use URI::Escape;
use JSON;
use Encode qw/decode_utf8/;

my $query;
my @countries = <DATA>;
chomp foreach @countries;

my $port =
                 code  => $c, } } @countries_list;

      my $json = to_json(\@choices, {ascii => 1});
      print STDERR "RESPONSE: $json\n";
      
      my $response = HTTP::Response->new(RC_OK);
 
        'Pragma'        => 'no-cache',
        'Expires'       => '0');
      $response->content($json);
      $client_connection->send_response($response);
    }
    elsif ($path_info =~ s[^g/country
File-DataClass ( P/PJ/PJFL/file-dataclass/File-DataClass-0.73.1.tar.gz, PJFL, 2017; MetaCPAN )
File-DataClass/lib/File/DataClass/Storage/Any.pm ( view source; MetaCPAN )
ma->new( storage_class => q(Any) );

   my $loaded = $schema->load( 'data_file1.xml', 'data_file2.json' );

=head1 Description

Selects storage class using the extension on the path

=head1 Configurat
Alien-GvaScript ( D/DA/DAMI/Alien-GvaScript-1.45.tar.gz, DAMI, 2017; MetaCPAN )
Alien-GvaScript/lib/Alien/GvaScript/AutoCompleter.pod ( view source; MetaCPAN )
 then an Ajax request
will be sent to C</myapp/completion?search=ab>.

The server should return a JSON array, in the format explained below.

=item a callback function

That function will be called, w
 See also C<options.caseSensitive>.

=item an object (JSONP)

Useful when accessing data on a different domain via JSONP services.

  Ex :   { json_url: 'http://search.yahooapis.com/WebSearchService/V
&query=?1&output=json&callback=?2',
           json_list: 'ResultSet/Result' }

The object should hold details of the JSONP service to be called. 

C<json_url> : url to call with placeholders (?1, ?2)
File-DataClass ( P/PJ/PJFL/file-dataclass/File-DataClass-0.73.1.tar.gz, PJFL, 2017; MetaCPAN )
File-DataClass/lib/File/DataClass/Schema.pm ( view source; MetaCPAN )
;

has 'storage_class'            => is => 'rw',   isa => Str,
   default                     => 'JSON', lazy => TRUE;

has 'tempdir'                  => is => 'ro',   isa => Directory,
   coerce     
ibutes

Creates a new instance of the storage class which defaults to
L<File::DataClass::Storage::JSON>

Defines these attributes

=over 3

=item C<cache>

Instantiates and returns the L<Cache|File::D
Alien-GvaScript ( D/DA/DAMI/Alien-GvaScript-1.45.tar.gz, DAMI, 2017; MetaCPAN )
Alien-GvaScript/lib/Alien/GvaScript/ProtoExtensions.pod ( view source; MetaCPAN )
type.getJSON

  Prototype.getJSON(url, callback)

based on: getJSON function by Juriy Zaytsev L<http://github.com/kangax/protolicious/tree/master/get_json.js>

A method to temporarily load JSON data (
ideally hosted on a different domain and accessible via JSONP service) and send it over to callback method when ready.


=head2 Hash utilities

=head3 Hash.expand

  var tree = Hash.expand(flat_hash);
Mojo-CallFire ( S/SA/SADAMS/Mojo-CallFire-0.01.tar.gz, SADAMS, 2017; MetaCPAN )
Mojo-CallFire/lib/Mojo/CallFire.pm ( view source; MetaCPAN )
cf = Mojo::CallFire->new(username => '...', password => '...');
  say $cf->get('/calls')->result->json('/items/0/id');
  
=head1 DESCRIPTION

A simple interface to the CallFire API.

Currently only L<
CloudCron ( J/JL/JLMARTIN/CloudCron-0.02.tar.gz, JLMARTIN, 2017; MetaCPAN )
CloudCron/lib/CloudCronCLI/Remove.pm ( view source; MetaCPAN )
package CloudCronCLI::Remove;
  use MooseX::App::Command;

  use Paws;
  use JSON;
  use CloudDeploy::Utils;
  use CloudCron::AWS::CloudWatch;

  command_short_description q(Delete a crontab queue or 
Mojo-CloudCheckr ( S/SA/SADAMS/Mojo-CloudCheckr-0.01.tar.gz, SADAMS, 2017; MetaCPAN )
Mojo-CloudCheckr/lib/Mojo/CloudCheckr.pm ( view source; MetaCPAN )
e 'missing access_key' };
has base_url   => 'https://api.cloudcheckr.com/api';
has format     => 'json';
has _ua        => sub { Mojo::UserAgent->new };

sub get {
  my ($self, $cb) = (shift, ref $_[-
ojo::CloudCheckr->new(access_key => '...');
  say $cc->get(account => 'get_accounts_v2')->result->json('/accounts_and_users/0/account_name');
  
=head1 DESCRIPTION

A simple interface to the CloudChec
;
  $cc        = $cc->format($format);

The response format from the CloudCheckr API, defaults to json.

  # Set the format to XML
  $cc->format('xml');

=head1 METHODS

L<Mojo::CloudCheckr> inherits 
Dist-Zooky ( B/BI/BINGOS/Dist-Zooky-0.24.tar.gz, BINGOS, 2017; MetaCPAN )
Dist-Zooky/lib/Dist/Zooky/Core/MakeMaker.pm ( view source; MetaCPAN )
 ];
    run ( command => $cmd, verbose => 0 );
  }

  if ( -e 'MYMETA.json' ) {

    $struct = $self->meta_from_file( 'MYMETA.json' );

  }
  elsif ( -e 'MYMETA.yml' ) {

    $struct = $self->meta_fro
Dist-Zooky ( B/BI/BINGOS/Dist-Zooky-0.24.tar.gz, BINGOS, 2017; MetaCPAN )
Dist-Zooky/lib/Dist/Zooky/Core/FromMETA.pm ( view source; MetaCPAN )
TA.json' ) {

    $struct = $self->meta_from_file( 'META.json' );

  }
  elsif ( -e 'META.yml' ) {

    $struct = $self->meta_from_file( 'META.yml' );

  }
  else {

    die "There is no 'META.json' n

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