package Net::PostcodeNL::WebshopAPI;
use strict;
use warnings;
use LWP::UserAgent;
use JSON::XS;
use URI::Template;
use Net::PostcodeNL::WebshopAPI::Response;
our $VERSION = '0.0201';
my $AGENT =
application/json') {
return Net::PostcodeNL::WebshopAPI::Response->new(decode_json($resp->decoded_content));
}
return Net::PostcodeNL::WebshopAPI::Response->new(decode_json($resp->deco
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 *
XS
=head1 VERSION
version 0.3.1
=begin MetaPOD::JSON v1.1.0
{
"namespace":"PortageXS::Useflags",
"interface":"role"
}
=end MetaPOD::JSON
=head1 AUTHORS
=over 4
=item *
Christian Hart
eXS>
=head1 VERSION
version 0.3.1
=begin MetaPOD::JSON v1.1.0
{
"namespace":"PortageXS::Core",
"interface":"role"
}
=end MetaPOD::JSON
=head1 AUTHORS
=over 4
=item *
Christian Hartma
;
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
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":
le >>
=begin MetaPOD::JSON v1.1.0
{
"namespace":"PortageXS::UI::Spinner::Rainbow",
"inherits":["PortageXS::UI::Spinner"],
"interface":"class"
}
=end MetaPOD::JSON
=head1 AUTHORS
=ove
head1 SEE ALSO
L<OAuth::Lite2::Formatter>
L<OAuth::Lite2::Formatters>
L<OAuth::Lite2::Formatter::JSON>
L<OAuth::Lite2::Formatter::FormURLEncoded>
=head1 AUTHOR
Lyo Kato, E<lt>lyo.kato@gmail.comE<gt
Auth::Lite2::Formatters>
L<OAuth::Lite2::Formatter::FormURLEncoded.pm>
L<OAuth::Lite2::Formatter::JSON>
L<OAuth::Lite2::Formatter::XML>
=head1 AUTHOR
Lyo Kato, E<lt>lyo.kato@gmail.comE<gt>
=head1 C
pe', 'application/json' ]]);
wait_for_events(sub {
my $new_event = shift;
if ($new_event) {
$writer->write($new_event->as_json . "\n");
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
head1 SEE ALSO
L<OAuth::Lite2::Formatter>
L<OAuth::Lite2::Formatters>
L<OAuth::Lite2::Formatter::JSON>
L<OAuth::Lite2::Formatter::XML>
=head1 AUTHOR
Lyo Kato, E<lt>lyo.kato@gmail.comE<gt>
=head1 C
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;
}
});
};
est) = @_;
# from draft-v8, format is specified to JSON only.
my $format = "json";
# my $format = $request->param("format") || "json";
my $formatter = OAuth::Lite2::Formatters->get_fo
rmatter_by_name($format)
|| OAuth::Lite2::Formatters->get_formatter_by_name("json");
my $res = try {
my $type = $request->param("grant_type")
or OAuth::Lite2::Server:
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
gent(
join "/", __PACKAGE__, $OAuth::Lite2::VERSION);
}
$self->{format} ||= 'json';
$self->{response_parser} = OAuth::Lite2::Client::TokenResponseParser->new;
return $sel
=head1 VERSION
version 0.3.1
=begin MetaPOD::JSON v1.1.0
{
"namespace":"PortageXS::UI::Console",
"interface":"role"
}
=end MetaPOD::JSON
=head1 AUTHORS
=over 4
=item *
Christian Har
se( $formatted_string );
=head1 SEE ALSO
L<OAuth::Lite2::Formatters>
L<OAuth::Lite2::Formatter::JSON>
L<OAuth::Lite2::Formatter::XML>
L<OAuth::Lite2::Formatter::FormURLEncoded>
=head1 AUTHOR
Lyo K
nt(
join "/", __PACKAGE__, $OAuth::Lite2::VERSION);
}
# $self->{format} ||= 'json';
$self->{response_parser} = OAuth::Lite2::Client::TokenResponseParser->new;
return $sel
nt(
join "/", __PACKAGE__, $OAuth::Lite2::VERSION);
}
# $self->{format} ||= 'json';
$self->{response_parser} = OAuth::Lite2::Client::TokenResponseParser->new;
return $sel