date_Google_IAP_JWT;
use strict;
use warnings;
our $VERSION = "0.04";
use MOP4Import::Base::CLI_JSON -as_base
, [fields =>
, [key_url => default => "https://www.gstatic.com/iap/verify/public_
->request(GET => $self->{key_url});
if ($response->{success}) {
my $jwt = $self->cli_decode_json($response->{content});
my ResHeaders $headers = $response->{headers};
my $expires = $head
ch_iap_public_key
Fetch L<https://www.gstatic.com/iap/verify/public_key-jwk> and returns decoded json.
=head1 LICENSE
Copyright (C) Kobayasi, Hiroaki.
This library is free software; you can redist
$list{$module}++;
}
}
}
if($list{'JSON::MaybeXS'})
{
$list{'JSON::PP'}++;
$list{'JSON::XS'}++;
}
if(my($alien) = grep { $_->isa('Dist::Zilla::
ul
SQLite
JavaScript
dir
plugins
munge
jQuery
namespace
PDF
PDFs
usernames
DBI
pluggable
APIs
SSL
JSON
YAML
uncommented
Solaris
OpenVMS
URI
URL
CGI
));
all_pod_files_spelling_ok;
__[ xt/author/versi
ile.PL
Generating a Unix-style Makefile
Writing Makefile for Foo
Writing MYMETA.yml and MYMETA.json
% make
cp lib/Foo.pm blib/lib/Foo.pm
"/Users/ollisg/perl5/perlbrew/perls/perl-5.30.0/bin/perl"
_;
my $json = $conf{json};
my $is_him = $conf{is_him};
my $short = $json->{txtS};
my $text = $json->{txtN};
my $type = $json->{type};
my $code = $json->{code};
my $prio = $json->{prio};
if ($is_him) {
$short = $json->{head};
$text = $json->{text};
$code = $json->{hid};
}
my $ref = {
short => $short,
text => $text,
type => $type,
code => $code,
=> $is_him,
ref_count => $conf{ref_count},
};
bless( $ref, $obj );
return $ref;
}
sub TO_JSON {
my ($self) = @_;
return { %{$self} };
}
1;
__END__
=head1 NAME
Travel::Status::DE::HAFAS
jects
use v5.14;
use warnings;
use Carp;
use Crypt::Digest;
use Exporter 5.57 qw/ import /;
use JSON::MaybeXS;
# RECOMMEND PREREQ: Crypt::Digest 0.062
our $VERSION = 'v1.2.2';
our @EXPORT = qw
nvalid digest format: %s', $args{format} );
}
$args{serializer} //= sub {
return JSON->new->canonical(1)->allow_nonref(1)->utf8(1)->pretty(0)
->indent(0)->space_before(0)-
with
public key signatures.) of Perl data structures.
The object is serialized into a canonical JSON structure, and then
hashed using the MD5 algorithm.
Any two machines running different versions
package FFI::Build::MM;
use strict;
use warnings;
use 5.008004;
use Carp ();
use FFI::Build;
use JSON::PP ();
use File::Glob ();
use File::Basename ();
use File::Path ();
use File::Copy ();
use ExtUt
en my $fh, '>', 'fbx.json';
print $fh JSON::PP::encode_json($self->{prop});
close $fh;
}
sub load_prop
{
my($self) = @_;
return unless $self->{save};
unless(-f 'fbx.json')
{
$self->{p
rop} = {};
return;
}
open my $fh, '<', 'fbx.json';
$self->{prop} = JSON::PP::decode_json(do { local $/; <$fh> });
close $fh;
}
sub clean
{
my($self) = @_;
foreach my $stage (qw( build
;
use Cwd;
use File::Temp qw/ tempfile /;
use HTTP::Date;
use HTTP::Status qw/ :constants /;
use JSON::MaybeXS 1.004000;
our $VERSION = 'v0.3.1';
sub prepare_app {
my ($self) = @_;
if (my
traffic-advice-XXXXXXXX', SUFFIX => '.json', UNLINK => 0, TMPDIR => 1);
$self->file( $filename );
if (ref($data)) {
my $encoder = JSON::MaybeXS->new( { utf8 => 1 } );
file));
[
HTTP_OK,
[
'Content-Type' => 'application/trafficadvice+json',
'Content-Length' => $stat[7],
'Last-Modified' => HTTP::Date::time2str( $stat
foreach my $module (keys $prereqs->{$phase}->{$type}->%*)
{
if($module =~ /^(JSON|PerlX::Maybe)$/)
{
$self->zilla->register_prereqs({
type =>
if($module eq 'JSON::MaybeXS')
{
$self->zilla->register_prereqs({
type => 'recommends',
phase => $phase,
}, "Cpanel::JSON::XS" => 0);
m Mojolicious
Require 4.31
=item Role::Tiny
Require 1.003001. See rt#83248
=item JSON::XS
Recommended if JSON is required.
=item PerlX::Maybe::XS
Recommended if PerlX::Maybe is required.
=ite
('json');
# prints "Welcome to Perl" without prefix
# or trailing white space.
say $dsp->get_data_section('hello.txt');
# also prints "Welcome to Perl"
say $dsp->get_data_section('hello.json'
$dsp->get_data_section('hello.bin');
__DATA__
@@ hello.txt
Welcome to Perl
@@ hello.json
{"message":"Welcome to Perl"}
@@ hello.bin (base64)
VGhpcyBpcyBiYXNlNjQgZW5jb2RlZC4K
=head1
xtension. The extension should be a filename
extension without the C<.>, for example C<txt> or C<json>.
The callback takes the L<Data::Section::Pluggable> instance as its first argument and the cont
::Type is not just for function
# signature checking. For example you also can use it to validate JSON input
# data, or other kind of stuff that you later don't disable in your code and
# stays active
'Tie::Hash::DataSection', __PACKAGE__, $plugin;
the name of the plugin, for example C<trim> or C<json>.
=item array reference
tie %hash, 'Tie::Hash::DataSection', __PACKAGE__, [$plugin, @args];
T
se strict;
use warnings;
use 5.014;
use utf8;
use Carp qw(confess);
use Encode qw(decode);
use JSON;
use LWP::UserAgent;
our $VERSION = '6.15';
# {{{ Constructors
sub new {
my ( $obj, %conf ) =
on [(] [)] ; $ }{}x;
if ( $ref->{developer_mode} ) {
say $ref->{raw_reply};
}
$ref->{json} = from_json( $ref->{raw_reply} );
return $ref;
}
sub new_p {
my ( $obj, %conf ) = @_;
my $promise
; $ }{}x;
if ( $self->{developer_mode} ) {
say $self->{raw_reply};
}
$self->{json} = from_json( $self->{raw_reply} );
$promise->resolve( $self->results );
return;
}
)->catch(
=> $loc->{wt},
distance_m => $loc->{dist},
};
bless( $ref, $obj );
return $ref;
}
sub TO_JSON {
my ($self) = @_;
my $ret = { %{$self} };
return $ret;
}
1;
__END__
=head1 NAME
Travel:
($self) = @_;
if ( $self->{messages} ) {
return @{ $self->{messages} };
}
return;
}
sub TO_JSON {
my ($self) = @_;
my $ret = { %{$self} };
for my $k ( keys %{$ret} ) {
if ( ref( $ret->{$
e DateTime::Format::Strptime;
use Digest::MD5 qw(md5_hex);
use Encode qw(decode encode);
use JSON;
use LWP::UserAgent;
use Travel::Status::DE::HAFAS::Journey;
use Travel::Status::DE::HAFAS::Locat
my $json = $self->{json} = JSON->new->utf8;
# The JSON request is the cache key, so if we have a cache we must ensure
# that JSON serialization is deterministic.
if ( $self->{cache} ) {
$json->c
anonical;
}
$req = $json->encode($req);
$self->{post} = $req;
my $url = $conf{url} // $hafas_instance->{$service}{mgate};
if ( my $salt = $hafas_instance->{$service}{salt} ) {
if ( $hafas_in
::Load($filecontent)];
}
elsif ($intype eq "json") {
require JSON;
$data = JSON::decode_json($filecontent);
}
elsif ($intype eq "xml")
list);
}
elsif ($outtype eq "json")
{
eval "use JSON -convert_blessed_universally";
my $json = JSON->new->allow_nonref->pretty->allow_blessed->c
ument
(which defaults to 'yaml') and returns the resulting data structure. Other
data types are: 'json', 'xml', 'ini', 'cfggeneral', 'dumper' and 'tap'.
The optional third argument specifies a list o
loc->eva eq $req_stop ) {
return $stop->prod_dep // $stop->prod_arr;
}
}
return;
}
sub TO_JSON {
my ($self) = @_;
my $ret = { %{$self} };
for my $k ( keys %{$ret} ) {
if ( ref( $ret->{$
ble to write, not really humand readable. Too much stuff. Schemas,
# Xpath?
#
# Schemas: Just use JSON and use the type-system Sq::Type for "Schemas".
#
# XPath: how crappy is your language support
ader_re => qr/^@@ (.*?)$/ };
use Dist::Zilla::MintingProfile::Author::Plicease;
use JSON::PP qw( encode_json );
use Encode qw( encode_utf8 );
# ABSTRACT: Dist::Zilla initialization tasks for
$self->gather_file_simple ('.gitattributes');
$self->gather_file_simple ('.vscode/settings.json');
$self->gather_file_template('.gitignore');
$self->gather_file_simple ('alienfile') if
code_json({
name => $self->zilla->name,
description => $self->abstract,
private => (!$org && $self->github_private) ? JSON::PP::true : JSON::PP:
;
use Time::HiRes qw(time);
use Sys::Syslog qw(:macros);
use Sys::Hostname;
use JSON::MaybeXS qw(encode_json decode_json);
use IO::Compress::Gzip qw(gzip $GzipError);
use IO::Uncompress::Gunzip qw(gun
n encode_json(validate_message(@p));
}
sub decode {
my @p = validate_pos(
@_,
{ type => SCALAR },
);
my $msg = shift @p;
return validate_message(decode_json($msg));
age will be
validated with L</validate_message>.
Returns a JSON encoded string representing the message.
=head2 decode( $ )
Accepts a JSON encoded string representing the message. This will be
conv