le >>
=begin MetaPOD::JSON v1.1.0
{
"namespace":"PortageXS::UI::Spinner::Rainbow",
"inherits":["PortageXS::UI::Spinner"],
"interface":"class"
}
=end MetaPOD::JSON
=head1 AUTHORS
=ove
::Pod::Coverage>
=head3 L<Pod::Coverage::TrustPod>
=head2 Misc
=head3 L<File::chdir>
=head3 L<JSON>
=head3 L<Log::Log4perl>
=head3 L<Module::Find>
=head3 L<Telephony::CountryDialingCodes>
=hea
\s*(application/rdf\+xml)|(text/rdf)\b'i;
return 'RDF::Trine::Parser::RDFJSON'->new if m'^\s*application/(x-)?(rdf\+)?json\b'i;
}
return undef;
}
sub _choose_parser_by_language
{
shift;
ret
ation/x-turtle
text/plain (N-Triples), text/n3 (Notation 3), application/x-rdf+json (RDF/JSON),
application/json (RDF/JSON), and application/rdf+xml (RDF/XML).
The deprecated attribute "language" is
e" id="foo"> ... </script>
Languages supported are (case insensitive): "Turtle", "NTriples", "RDFJSON",
"RDFXML" and "Notation3".
=head2 Constructor
=over 4
=item C<< HTML::Embedded::Turtle->new($
output_handle >>
=begin MetaPOD::JSON v1.1.0
{
"namespace":"PortageXS::UI::Spinner",
"inherits":"Moo::Object",
"interface":"class"
}
=end MetaPOD::JSON
=head1 AUTHORS
=over 4
=item
isa => sub {
my $t = $_[0];
is_string($t) && array_includes([qw(xml json)],$t) || die("type must be 'xml' or 'json'");
},
default => sub { 'xml'; },
lazy => 1
);
sub generator {
my($
Collection
state $mods = do {
#MODS::Record->from_json expects binary input (decode_json is applied)
if($self->type eq "json"){
$self->fh->binmode(":raw");
}
my $m
= $self->type eq "xml" ? MODS::Record->from_xml($self->fh) : MODS::Record->from_json($self->fh);
my $res = ref($m) eq "MODS::Element::Mods" ? [$m] : $m->mods;
$res;
};
return $i <
ON
version 0.3.1
=begin MetaPOD::JSON v1.1.0
{
"namespace":"PortageXS::MakeConf",
"interface":"class",
"inherits":"Moo::Object"
}
=end MetaPOD::JSON
=head1 AUTHORS
=over 4
=item *
y $json;
my $have_config_any;
my $have_file_configdir;
my $have_file_find_rule;
BEGIN
{
foreach my $mod (qw(JSON JSON::PP))
{
eval "require $mod";
$@ and next;
$json =
last;
}
# $json or die "" . __PACKAGE__ . " requires a JSON parser";
# finally ... Config::Any could be enough, and most recent
# perl5 are coming with JSON::PP
$have_file_co
fdirs;
};
$have_config_any
or *get_config_pattern = sub {
my @pattern;
$json and push( @pattern, "json" );
@pattern;
};
$have_config_any
and *get_config_pattern = sub {
my @p
E
PortageXS - Portage abstraction layer for perl
=head1 VERSION
version 0.3.1
=begin MetaPOD::JSON v1.1.0
{
"namespace":"PortageXS",
"interface":"class",
"does":[
"PortageXS::
:System",
"PortageXS::UI::Console",
"PortageXS::Useflags"
]
}
=end MetaPOD::JSON
=head1 NAMING
For CPAN users, the name of this module is likely confusing, and annoying.
=over
nt(
join "/", __PACKAGE__, $OAuth::Lite2::VERSION);
}
# $self->{format} ||= 'json';
$self->{response_parser} = OAuth::Lite2::Client::TokenResponseParser->new;
return $sel
2 C<ht_tiny>
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Net::TribalWarsMap::API::HTTP",
"interface":"class",
"inherits":"Moo::Object"
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric
nger::CPAN;
use 5.010;
use common::sense;
use utf8;
use Digest::MD5 0 qw(md5_hex);
use JSON 2.00 qw(from_json);
use LWP::Simple 0 qw(get);
use parent qw(WWW::Finger);
BEGIN {
$WWW::Finger::CPAN::
uri = sprintf('http://api.metacpan.org/v0/author/%s', uc $user);
$self->{metacpan_data} = from_json(get($uri));
}
$self->{metacpan_data};
}
sub releases
{
my $self = shift;
unless ($self->
0AND%%20status:latest&size=100', uc $user);
$self->{releases} = [ map { $_->{_source} } @{ from_json(get($uri))->{hits}->{hits} } ];
}
return wantarray
? @{ $self->{releases} }
: scalar @{ $
my $message = shift;
my $body = [ $message->to_json ];
$respond->([200, ['Content-Type', 'application/json'], $body]);
});
};
};
C<wait_for_new_messag
my $message = shift;
if ($message) {
$writer->write($message->to_json);
} else {
$writer->close;
}
});
};
use Data::Format::Pretty::JSON qw{format_pretty};
use Data::PathSimple qw{get};
use Getopt::Long;
use JSON::XS;
use Pod::Usage;
my (
$data,
%options,
);
init();
jsonconf();
sub init {
# get
!)\n";
}
my ($json) = do { local $/; <$fh> };
$data = eval { decode_json($json) };
if ($@) {
die "error: invalid JSON was encountered\n";
}
# }}}
}
sub jsonconf {
my $value
=pod
=head1 NAME
jsonexplorer.pl - A simple JSON explorer for the command line (think ls for JSON)
=head1 SYNOPSIS
jsonexplorer.pl [options] [path]
$ cat example.json
{
"Perl":
pe', 'application/json' ]]);
wait_for_events(sub {
my $new_event = shift;
if ($new_event) {
$writer->write($new_event->as_json . "\n");
content_type =~ m`(n3|turtle|text/plain)`;
$parser = RDF::Trine::Parser::RDFJSON->new if $response->content_type =~ m`(json)`;
$parser = RDF::Trine::Parser::RDFXML->new unless defined $parser;
$pa
>env_proxy;
$ua->default_header('Accept' => 'application/rdf+xml, text/turtle, application/x-rdf+json');
my $response = $ua->get($uri);
if ($response->is_success)
{
$self->_response_into_mod
ibraries
to load configuration data from multiple different file formats. It
supports XML, YAML, JSON, Apache-style configuration, Windows INI
files, and even Perl code.)
=head1 EXPORTS
By defaul
talls;
my $wanted = sub {
if ($_ eq 'install.json') {
push @installs, [ $File::Find::name, "$File::Find::dir/MYMETA.json" ];
}
};
File::Find::find($wanted, $lib
eturn 1;
}
};
for my $file (@installs) {
my $module = Carton::Util::load_json($file->[0]);
my $prereqs = -f $file->[1] ? CPAN::Meta->load_file($file->[1])->effective_p
PHASE: gather files
$self->add_plugins(
'GatherDir',
'License',
'MetaJSON',
'MetaYAML',
'Manifest',
'Test::Compile',
'Test::Version',
[License]
; Distributions released to the CPAN include a META.json/META.yml
; file. Emit both of these.
[MetaJSON]
[MetaYAML]
; Add a MANIFEST file.
[Manifest]
; Add
WWW::Finger::BitworkingFingerProtocol;
use 5.010;
use common::sense;
use utf8;
use Carp 0;
use JSON 2.00;
use LWP::UserAgent 0;
use URI 0;
use URI::Escape 0;
use parent qw(WWW::Finger);
BEGIN {
UserAgent->new;
$ua->timeout(10);
$ua->env_proxy;
$ua->default_header('Accept' => 'application/json');
my $host_get = $ua->get("http://$host/.well-known/finger");
return undef unless $host_ge
pe :-(
### return undef unless $host_get->content_type =~ m#^application/(\S+\+)?json$#i;
my $host_data = from_json( $host_get->decoded_content );
my $template = $host_data->{'finger'};
retur
;
sub people :Local {
# ...
my $json = $self->ext_paginate($paginated_rs);
# ...
}
sub people_lite :Local {
# ...
my $json = $self->ext_paginate($paginated_rs, sub {
my $json = $self->ext_paginate($paginated_rs, 'foo');
# ...
}
sub programmers_do_it_by_hand :Local {
# ...
my $data = [qw{foo bar baz}];
my $total = 10;
my $json = $se
ogrammers_do_it_by_hand_partially :Local {
# ...
my $data = [qw{foo bar baz}];
my $json = $self->ext_parcel($data);
# ...
}
=head1 DESCRIPTION
This module is mostly for sending