view release on metacpan or search on metacpan
lib/Address/PostCode/Australia.pm view on Meta::CPAN
Version 0.12
=cut
use 5.006;
use JSON;
use Data::Dumper;
use Address::PostCode::UserAgent;
use Address::PostCode::Australia::Place;
use Address::PostCode::Australia::Params qw(validate);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Address/PostCode/India.pm view on Meta::CPAN
Version 0.13
=cut
use 5.006;
use JSON;
use Data::Dumper;
use Address::PostCode::UserAgent;
use Address::PostCode::India::Place;
use Moo;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Address/PostCode/UK.pm view on Meta::CPAN
Version 0.18
=cut
use 5.006;
use JSON;
use Data::Dumper;
use Address::PostCode::UserAgent;
use Address::PostCode::UK::Location;
use Address::PostCode::UK::Place;
use Address::PostCode::UK::Place::Geo;
view all matches for this distribution
view release on metacpan or search on metacpan
0.03 2014-11-15T11:10:25+01:00
- Added support to accept headers optionally to the method get().
0.02 2014-10-29T15:40:00+01:00
- Removed the pre-req 'JSON' from the Makefile.PL file.
0.01 2014-10-29T14:27:30+01:00
- First version, released.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Ado/Control.pm view on Meta::CPAN
$c->app->log->debug(@_);
=head2 list_for_json
Prepares a structure suitable for rendering as JSON for listing an ARRAYref
of HASHES or L<Ado::Model>* objects, returned by L<Ado::Model/select_range>
and returns it. Accepts two C<ARRAY> references and one arbitrary C<HASH>
reference as parameters:
my $res = $c->list_for_json([$limit, $offset], \@list_of_AMobjects_or_hashes, $meta);
view all matches for this distribution
view release on metacpan or search on metacpan
t/config/60-recursion-test.cfg
t/config/70-date-validation.cfg
t/config/70-date-validation_2.cfg
t/test-helper/helper1234.pm
META.yml Module meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
builder/Affix/Builder.pm view on Meta::CPAN
use ExtUtils::Install qw[pm_to_blib install];
use ExtUtils::InstallPaths 0.002;
use File::Basename qw[basename dirname];
use File::Path qw[make_path remove_tree];
use File::Spec::Functions qw[catfile catdir rel2abs abs2rel splitdir curdir];
use JSON::PP 2 qw[encode_json decode_json];
use File::Temp qw[tempfile];
# Not in CORE
use Path::Tiny qw[path cwd];
use ExtUtils::Helpers 0.028 qw[make_executable split_like_shell detildefy];
view all matches for this distribution
view release on metacpan or search on metacpan
"version" : "0.0.3",
"x_authority" : "cpan:DART",
"x_contributors" : [
"Yaroslav O. Kosmina <dart@cpan.org>"
],
"x_serialization_backend" : "JSON::PP version 4.16",
"x_static_install" : 0
}
view all matches for this distribution
view release on metacpan or search on metacpan
"x_authority" : "cpan:DART",
"x_contributors" : [
"Yaroslav O. Kosmina <dart@cpan.org>",
"Yaroslav O. Kosmina <darviarush@mail.ru>"
],
"x_serialization_backend" : "JSON::PP version 4.16",
"x_static_install" : 0
}
view all matches for this distribution
view release on metacpan or search on metacpan
"version" : "0.1.0",
"x_authority" : "cpan:DART",
"x_contributors" : [
"Yaroslav O. Kosmina <dart@cpan.org>"
],
"x_serialization_backend" : "JSON::PP version 4.16",
"x_static_install" : 1
}
view all matches for this distribution
view release on metacpan or search on metacpan
"version" : "0.0.3",
"x_authority" : "cpan:DART",
"x_contributors" : [
"Yaroslav O. Kosmina <dart@cpan.org>"
],
"x_serialization_backend" : "JSON::PP version 4.16",
"x_static_install" : 0
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Aion/Format/Json.pm view on Meta::CPAN
package Aion::Format::Json;
use common::sense;
use JSON::XS qw//;
use Exporter qw/import/;
our @EXPORT = our @EXPORT_OK = grep {
*{$Aion::Format::Json::{$_}}{CODE} && !/^(_|(NaN|import)\z)/n
} keys %Aion::Format::Json::;
#@category json
# ÐаÑÑÑаиваем json
our $JSON = JSON::XS->new->allow_nonref->indent(1)->space_after(1)->canonical(1);
# Ð json
sub to_json(;$) {
$JSON->encode(@_ == 0? $_: @_)
}
# Ðз json
sub from_json(;$) {
$JSON->decode(@_ == 0? $_: @_)
}
1;
__END__
=encoding utf-8
=head1 NAME
Aion::Format::Json - Perl extension for JSON formatting
=head1 SYNOPSIS
use Aion::Format::Json;
to_json {a => 10} # => {\n "a": 10\n}\n
from_json '[1, "5"]' # --> [1, "5"]
=head1 DESCRIPTION
C<Aion::Format::Json> uses C<JSON::XS> as a base. And includes the following settings:
=over
=item * allow_nonref - encoding and decoding scalars.
lib/Aion/Format/Json.pm view on Meta::CPAN
local $_ = $data;
to_json # -> $result
=head2 from_json (;$string)
Parses a JSON string into a Perl structure.
from_json '{"a": 10}' # --> {a => 10}
[map from_json, "{}", "2"] # --> [{}, 2]
view all matches for this distribution
view release on metacpan or search on metacpan
"x_authority" : "cpan:DART",
"x_contributors" : [
"Yaroslav O. Kosmina <dart@cpan.org>",
"Yaroslav O. Kosmina <darviarush@mail.ru>"
],
"x_serialization_backend" : "JSON::PP version 4.16",
"x_static_install" : 0
}
view all matches for this distribution
view release on metacpan or search on metacpan
"x_authority" : "cpan:DART",
"x_contributors" : [
"Yaroslav O. Kosmina <dart@cpan.org>",
"Yaroslav O. Kosmina <darviarush@mail.ru>"
],
"x_serialization_backend" : "JSON::PP version 4.16",
"x_static_install" : 0
}
view all matches for this distribution
view release on metacpan or search on metacpan
"x_authority" : "cpan:DART",
"x_contributors" : [
"Yaroslav O. Kosmina <dart@cpan.org>",
"Yaroslav O. Kosmina <darviarush@mail.ru>"
],
"x_serialization_backend" : "JSON::PP version 4.16",
"x_static_install" : 0
}
view all matches for this distribution
view release on metacpan or search on metacpan
"version" : "0.0.1",
"x_authority" : "cpan:DART",
"x_contributors" : [
"Yaroslav O. Kosmina <darviarush@mail.ru>"
],
"x_serialization_backend" : "JSON::PP version 4.16",
"x_static_install" : 1
}
view all matches for this distribution
view release on metacpan or search on metacpan
"x_authority" : "cpan:DART",
"x_contributors" : [
"Yaroslav O. Kosmina <dart@cpan.org>",
"Yaroslav O. Kosmina <darviarush@mail.ru>"
],
"x_serialization_backend" : "JSON::PP version 4.16",
"x_static_install" : 1
}
view all matches for this distribution
view release on metacpan or search on metacpan
"version" : "0.0.1",
"x_authority" : "cpan:DART",
"x_contributors" : [
"Yaroslav O. Kosmina <darviarush@mail.ru>"
],
"x_serialization_backend" : "JSON::PP version 4.16",
"x_static_install" : 1
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Aion/Types.pm view on Meta::CPAN
'NoneExample' ~~ ConsumerOf[qw/Role1/] # -> ""
=head2 BoolLike
Tests for 1, 0, "", undef, or an object with an overloaded C<bool> or C<0+> operator as C<JSON::PP::Boolean>. In the second case, it calls the C<0+> operator and checks the result as C<Bool>.
C<BoolLike> calls the C<0+> operator and checks the result.
package BoolLikeExample {
use overload '0+' => sub { ${$_[0]} };
view all matches for this distribution
view release on metacpan or search on metacpan
t/manifest.t
t/pod-coverage.t
t/pod.t
t/testdata.json
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
}
},
"test" : {
"requires" : {
"Cwd" : "0",
"JSON" : "0",
"Test::More" : "0",
"Test::Pod" : "1.41",
"URI" : "0",
"perl" : "v5.10.0"
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Akamai/Open/DiagnosticTools.pm view on Meta::CPAN
use strict;
use warnings;
use v5.10;
use Moose;
use JSON;
#XXX create a useful scheme for REST methods
use constant {
TOOLS_URI => '/diagnostic-tools',
DIG_URI => '/v1/dig',
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Akamai/PropertyFetcher.pm view on Meta::CPAN
package Akamai::PropertyFetcher;
use strict;
use warnings;
use Akamai::Edgegrid;
use JSON;
use File::Spec;
use File::Path 'make_path';
use Parallel::ForkManager;
use Carp;
view all matches for this distribution
view release on metacpan or search on metacpan
"Nathan Glenn <nathan-gary.glenn@trivago.com>",
"Nick Logan <nlogan@gmail.com>",
"Richard Leach <richardleach@users.noreply.github.com>"
],
"x_generated_by_perl" : "v5.32.0",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.38",
"x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Metadata.pm view on Meta::CPAN
}
sub write_mymeta_json {
my $self = shift;
# We need JSON to write the MYMETA.json file
unless ( eval { require JSON; 1; } ) {
return 1;
}
# Generate the data
my $meta = $self->_write_mymeta_data or return 1;
# Save as the MYMETA.yml file
print "Writing MYMETA.json\n";
Module::Install::_write(
'MYMETA.json',
JSON->new->pretty(1)->canonical->encode($meta),
);
}
sub _write_mymeta_data {
my $self = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
t/variation.t
typemap
Changes
README.md
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
XS.xs
t/Algorithm-BIT-XS.t
lib/Algorithm/BIT/XS.pm
lib/Algorithm/BIT2D/XS.pm
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
SIGNATURE Public-key signature (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
"web" : "https://github.com/GrantStreetGroup/Algorithm-Backoff-RetryTimeouts"
}
},
"version" : "v1.0.0",
"x_generated_by_perl" : "v5.18.2",
"x_serialization_backend" : "JSON::XS version 4.02",
"x_spdx_expression" : "Artistic-2.0",
"x_static_install" : 1
}
view all matches for this distribution
view release on metacpan or search on metacpan
"class" : "Dist::Zilla::Plugin::IfBuilt",
"name" : "@Author::PERLANCAR/IfBuilt",
"version" : "0.02"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@Author::PERLANCAR/MetaJSON",
"version" : "6.031"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@Author::PERLANCAR/MetaConfig",
"x_contributors" : [
"Brendan Byrd <brendan.byrd@grantstreet.com>",
"SineSwiper <GitHub@ResonatorSoft.org>"
],
"x_generated_by_perl" : "v5.38.2",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.37",
"x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later",
"x_static_install" : 1
}
view all matches for this distribution
view release on metacpan or search on metacpan
"requires" : {}
}
},
"release_status" : "stable",
"version" : "0.87",
"x_serialization_backend" : "JSON::PP version 2.27300_01"
}
view all matches for this distribution