Group
Extension

Matches 35359

Dist-Zilla-Plugin-Web ( N/NP/NPLATONOV/Dist-Zilla-Plugin-Web-0.0.10.tar.gz, NPLATONOV, 2015; MetaCPAN )
Dist-Zilla-Plugin-Web/lib/Dist/Zilla/Plugin/Web/NPM/Package.pm ( view source; MetaCPAN )
e;
$Dist::Zilla::Plugin::Web::NPM::Package::VERSION = '0.0.10';
# ABSTRACT: Generate the `package.json` file, suitable for `npm` package manager 

use Moose;

with 'Dist::Zilla::Role::FileGatherer';
#
Role::BuildRunner';

with 'Dist::Zilla::Role::AfterBuild';

use Dist::Zilla::File::FromCode;

use JSON 2;
use Path::Class;

use File::ShareDir;
use Cwd;


has 'name' => (
    is          => 'rw',
    
   
    $self->add_file(Dist::Zilla::File::FromCode->new({
        
        name => file('package.json') . '',
        
        code => sub {
            
            my $package = {};
            
  
Rex-Inline ( X/XI/XIAOCANG/Rex-Inline-0.0.8.tar.gz, XIAOCANG, 2015; MetaCPAN )
Rex-Inline/lib/Rex/Inline/Base.pm ( view source; MetaCPAN )
s;

use utf8;

our $VERSION = '0.0.8'; # VERSION

use Moose;
use MooseX::AttributeShortcuts;

use JSON;

use namespace::autoclean;

=head1 ATTRIBUTES

=over 7

=item id

set/get task id (String)

defa
Zonemaster ( C/CD/CDYBED/Zonemaster-v1.0.3.tar.gz, CDYBED, 2015; MetaCPAN )
Zonemaster/lib/Zonemaster/Recursor.pm ( view source; MetaCPAN )
 Moose;
use JSON::PP;
use Zonemaster::Util;
use Net::IP::XS;
use Zonemaster;

my $seed_data;

our %recurse_cache;

{
    local $/;
    my $json = <DATA>;
    $seed_data = decode_json $json;
}

sub rec
Math-Histogram ( S/SM/SMUELLER/Math-Histogram-1.04.tar.gz, SMUELLER, 2015; MetaCPAN )
Math-Histogram/lib/Math/Histogram/Axis.pm ( view source; MetaCPAN )
istogram ();
use JSON::XS ();

# rest of implementation in C, see XS.xs and mh_axis.h

sub serialize {
  my $self = shift;
  my $hash = $self->_as_hash;
  return JSON::XS::encode_json($hash);
}

sub d
eserialize {
  my $class = shift;
  my $hash = JSON::XS::decode_json(ref($_[0]) ? ${$_[0]} : $_[0]);
  return $class->_from_hash($hash);
}




1;

__END__

=head1 NAME

Math::Histogram::Axis - Object 
nbins + 1> for overflow.

=head2 serialize

Returns a JSON string that represents this axis object.

=head2 deserialize

Class method. Given a JSON string as generated by C<serialize()>,
recreates the
Couchbase ( M/MN/MNUNBERG/Couchbase-2.0.3.tar.gz, MNUNBERG, 2015; MetaCPAN )
Couchbase/lib/Couchbase/Test/ClientSync.pm ( view source; MetaCPAN )
   is($exptxt, $doc->value,
       "Serializing/Deserializing UTF-8 characters (not bytes!) = FMT_JSON");

    $doc->format('utf8');
    $o->upsert($doc);
    $o->get($doc);
    is($exptxt, $doc->valu
ois.kisa.or.kr에서 서비스 되고 있습니다.";
    my $doc = Couchbase::Document->new('utf8json', { string => $txt });
    my $cb = $self->cbo;
    $cb->upsert($doc);
    $cb->get($doc);
    is
Zonemaster ( C/CD/CDYBED/Zonemaster-v1.0.3.tar.gz, CDYBED, 2015; MetaCPAN )
Zonemaster/lib/Zonemaster/Logger.pm ( view source; MetaCPAN )
r::Logger::Entry;
use Zonemaster;
use List::MoreUtils qw[none];
use Scalar::Util qw[blessed];
use JSON::XS;

has 'entries' => (
    is      => 'ro',
    isa     => 'ArrayRef[Zonemaster::Logger::Entry]
elf->entries;
    splice @$r, 0, scalar( @$r );

    return;
}

sub json {
    my ( $self, $min_level ) = @_;
    my $json    = JSON::XS->new->allow_blessed->convert_blessed->canonical;
    my %numeri
{args}      = $m->args if $m->args;

        push @out, \%r;
    }

    return $json->encode( \@out );
} ## end sub json

no Moose;
__PACKAGE__->meta->make_immutable;

1;

=head1 NAME

Zonemaster::Log
Rex-Inline ( X/XI/XIAOCANG/Rex-Inline-0.0.8.tar.gz, XIAOCANG, 2015; MetaCPAN )
Rex-Inline/lib/Rex/Inline.pm ( view source; MetaCPAN )
 'mkdtemp';
use File::Path::Tiny;
use File::Spec::Functions;

use YAML::XS qw(LoadFile Dump);
use JSON;
use Parallel::ForkManager;

use Rex -feature => 0.31;
use Rex::Config;
use Rex::Group;
use Rex::

=item report_as_json

  my $json_report = $rex_inline->report_as_json;

=cut

sub report_as_yaml { Dump( [ shift->map_reports(sub { Dump($_) }) ] ) }
sub report_as_json { encode_json( [shift->map_rep
orts(sub { encode_json($_) })] ) }

=item print_as_yaml

  $rex_inline->print_as_yaml;

=item print_as_json

  $rex_inline->print_as_json;

=cut

sub print_as_yaml { print join("\n", shift->map_report
WebService-SiftScience ( A/AA/AANARI/WebService-SiftScience-0.0100.tar.gz, AANARI, 2015; MetaCPAN )
WebService-SiftScience/lib/WebService/SiftScience.pm ( view source; MetaCPAN )
users => 'a, b, c, d',
            },
        ],
        latest_label => {
            is_bad  => JSON::true,
            time    => 1350201660000,
            reasons => [
                '$chargebac
 as bad (or not bad).

B<Request:>

    label_user('billy_jones_301', {
        '$is_bad'      => JSON::true,
        '$reasons'     => ['$chargeback'],
        '$description' => 'Freeform text descri
=> '1-415-555-6040',
        '$referrer_user_id' => 'janejane101',
        '$changed_password' => JSON::true,
        ...
    });

B<Response:>

    {
        error_message => 'OK',
        status    
Finance-Bitcoin-Feed ( B/BI/BINARY/Finance-Bitcoin-Feed-0.05.tar.gz, BINARY, 2015; MetaCPAN )
Finance-Bitcoin-Feed/lib/Finance/Bitcoin/Feed/Site/Hitbtc.pm ( view source; MetaCPAN )
';

sub new {
    my $class = shift;
    my $self  = $class->SUPER::new(@_);
    $self->on('json', \&on_json);

    return $self;
}

sub go {
    my $self = shift;
    $self->SUPER::go(@_);
    $self-
n(
                json => sub {
                    my ($tx, $hash) = @_;
                    $self->emit('json', $hash);
                });
        });
    return;
}

sub on_json {
    my ($self, $
Finance-Bitcoin-Feed ( B/BI/BINARY/Finance-Bitcoin-Feed-0.05.tar.gz, BINARY, 2015; MetaCPAN )
Finance-Bitcoin-Feed/lib/Finance/Bitcoin/Feed/Site/BtcChina/Socket.pm ( view source; MetaCPAN )
package Finance::Bitcoin::Feed::Site::BtcChina::Socket;

use JSON;
use Mojo::Base 'Mojo::Transaction::WebSocket';
use Scalar::Util qw(weaken);
has 'owner';
has 'ping_interval';
has 'ping_timeout';
has
 $json_data = decode_json($body);

        #session_id useless ?

        $self->ping_interval($json_data->{pingInterval})
            if $json_data->{pingInterval};
        $self->ping_timeout($json_
data->{pingTimeout})
            if $json_data->{pingTimeout};
        $self->last_pong_at(time());
        $self->last_ping_at(time());
        $self->emit('setup');
    }

    # pong
    elsif ($cod
Finance-Bitcoin-Feed ( B/BI/BINARY/Finance-Bitcoin-Feed-0.05.tar.gz, BINARY, 2015; MetaCPAN )
Finance-Bitcoin-Feed/lib/Finance/Bitcoin/Feed/Site/CoinSetter/Socket.pm ( view source; MetaCPAN )
package Finance::Bitcoin::Feed::Site::CoinSetter::Socket;
use JSON;
use Scalar::Util qw(weaken);

use Mojo::Base 'Mojo::Transaction::WebSocket';

has 'owner';

sub configure {
    my $self  = shift;
 


    my ($tx, $data) = @_;

    my @packets = ('disconnect', 'connect', 'heartbeat', 'message', 'json', 'event', 'ack', 'error', 'noop');

    my $regexp = qr/([^:]+):([0-9]+)?(\+)?:([^:]+)?:?([\s\S]
:102.43}]}"
    elsif ($packet->{type} eq 'event') {
        eval {
            my $opts = decode_json($data);
            $packet->{name} = $opts->{name};
            $packet->{args} = $opts->{args};
NNexus ( D/DG/DGINEV/NNexus-2.0.3.tar.gz, DGINEV, 2015; MetaCPAN )
NNexus/pod/Manual.pod ( view source; MetaCPAN )
rom the outside world and is responsible for the state of the various processing jobs.
 It speaks JSON through HTTP (soon Websockets!) and aims at simple RESTful communication interfacing with externa
 now been revisted, add text here.


=head2 Annotation Schemes

Talk about adding achors to HTML, JSON for editors, etc.

B<TODO:> These are also features that will be ready for the June release, but 
NNexus ( D/DG/DGINEV/NNexus-2.0.3.tar.gz, DGINEV, 2015; MetaCPAN )
NNexus/lib/NNexus/Job.pm ( view source; MetaCPAN )
ge base for autolinking/indexing

=item *

anntation: serialization format for annotation (links, JSON, RDFa)

=item *

embed: boolean for embedded or stand-off annotations

=item *

db: An initialize
NNexus ( D/DG/DGINEV/NNexus-2.0.3.tar.gz, DGINEV, 2015; MetaCPAN )
NNexus/lib/NNexus.pm ( view source; MetaCPAN )
R) = grep(-d $_, map("$_/NNexus", @INC));

use vars qw($VERSION);
$VERSION  = "2.0.3";

use Mojo::JSON 'j';
use NNexus::DB;
use NNexus::Job;
our %snapshot_credentials =
(
 "dbms" => "SQLite",
 "dbname
ob->execute;
  my $result = $job->result;
  if ($options{annotation} && ($options{annotation} eq 'json')) {j($result);}
  return $result;
}

sub indexentry {
  my (%options) = @_;
  my $db = delete $o
NNexus ( D/DG/DGINEV/NNexus-2.0.3.tar.gz, DGINEV, 2015; MetaCPAN )
NNexus/lib/NNexus/Annotate.pm ( view source; MetaCPAN )
;
$Data::Dumper::Sortkeys =1;
use NNexus::Concepts qw(links_from_concept);
use Mojo::JSON qw(decode_json encode_json);

sub serialize_concepts {
  my (%options) = @_;
  # Annotation Format:
  # HTML -
 fully linked html with RDFa annotations
  # xml - the matches hash in XML format.
  # json - the matches in JSON format
  # perl - Dump the datastructrure as-is
  my ($annotation,$concepts,$domain) =
rn what was given
    }
  } else {
    # stand-off case:
    if ($annotation eq 'json') {
     
     return encode_json($concepts); }
    # when ('perl') { return Dumper($concepts); } #TODO: Why is th
Couchbase ( M/MN/MNUNBERG/Couchbase-2.0.3.tar.gz, MNUNBERG, 2015; MetaCPAN )
Couchbase/lib/Couchbase/Settings.pm ( view source; MetaCPAN )
 ],
    bucket => [ 0x30, SETTING_STRING ]
);

my %ENCMAP = (
    json_encoder => CONVERTERS_JSON,
    json_decoder => CONVERTERS_JSON,
    storable_encoder => CONVERTERS_STORABLE,
    storable_decode
ings();
    $settings->{operation_timeout} = 5.0;

    # Or
    $bucket->settings->{json_encoder} = sub { encode_json(shift) };


=head1 DESCRIPTION

This object represents a tied hash which can modif
onnected to.


=item C<json_encoder>

Takes a subroutine reference which returns an encoded JSON string from a Perl object.
This may be used if you wish to use an alternate JSON encoder. The function 
Couchbase ( M/MN/MNUNBERG/Couchbase-2.0.3.tar.gz, MNUNBERG, 2015; MetaCPAN )
Couchbase/xs/perl-couchbase.h ( view source; MetaCPAN )
il.h"

typedef struct PLCB_st PLCB_t;

enum {
    PLCB_CONVERTERS_CUSTOM = 1,
    PLCB_CONVERTERS_JSON,
    PLCB_CONVERTERS_STORABLE
};

enum {
    PLCB_SETTING_INT,
    PLCB_SETTING_UINT,
    PLCB_SE
 PLCB_OPCTXIDX_REMAINING,
    PLCB_OPCTXIDX_QUEUE,
    PLCB_OPCTXIDX_EXTRA
};

enum {
    PLCB_LF_JSON = 0x00,
    PLCB_LF_STORABLE = 0x01 << 3,
    PLCB_LF_RAW = 0x03 << 3,
    PLCB_LF_UTF8 = 0x04 <<
B_CF_NONE,
    PLCB_CF_PRIVATE = 0x01 << 24,
    PLCB_CF_STORABLE = PLCB_CF_PRIVATE,

    PLCB_CF_JSON = 0x02 << 24,
    PLCB_CF_RAW = 0x03 << 24,
    PLCB_CF_UTF8 = 0x04 << 24,
    PLCB_CF_MASK = 0xF
Zonemaster ( C/CD/CDYBED/Zonemaster-v1.0.3.tar.gz, CDYBED, 2015; MetaCPAN )
Zonemaster/lib/Zonemaster/Packet.pm ( view source; MetaCPAN )
s );
    }

    my $from = $self->packet->answerfrom // '<unknown>';

    return $from;
}

sub TO_JSON {
    my ( $self ) = @_;

    return { 'Zonemaster::Packet' => $self->packet };
}

no Moose;
__PA
thod, that replaces udnefined values with the string C<E<lt>unknownE<gt>>.

=item TO_JSON

Support method for L<JSON> to be able to serialize these objects.

=back

=head1 METHODS PASSED THROUGH

Thes
Zonemaster ( C/CD/CDYBED/Zonemaster-v1.0.3.tar.gz, CDYBED, 2015; MetaCPAN )
Zonemaster/doc/ConfigAndPolicy.pod ( view source; MetaCPAN )
=head1 OVERVIEW

At the moment, the configuration system is exceedingly simple: it's just a JSON-serialized hash stored as data in the L<Zonemaster::Config> module.
Eventually, this will be changed to
cal overrides of defaults.

The policy data is already distributed as and loaded from an external JSON file. There isn't yet any ability to override policy data, or specify
alternatives.

=head1 CONFI
Zonemaster ( C/CD/CDYBED/Zonemaster-v1.0.3.tar.gz, CDYBED, 2015; MetaCPAN )
Zonemaster/lib/Zonemaster/DNSName.pm ( view source; MetaCPAN )
els = ( $label, @{ $self->labels } );

    return $self->new( { labels => \@labels } );
}

sub TO_JSON {
    my ( $self ) = @_;

    return $self->string;
}

## no critic (Modules::RequireExplicitIncl
NS tree.

=item prepend($label)

Returns a new L<Zonemaster::DNSName> object, representing the called one with the given label prepended.

=item TO_JSON

Helper method for JSON encoding.

=back

=cut

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