Group
Extension

Matches 35358

Alien-pkgconf ( P/PL/PLICEASE/Alien-pkgconf-0.21.tar.gz, PLICEASE, 2025; MetaCPAN )
Alien-pkgconf/script/probe.pl ( view source; MetaCPAN )

use warnings;
use Config;
use File::Spec;
use JSON::PP qw( encode_json decode_json );

my $status_filename = File::Spec->catfile('_alien', '01probe.json');
exit if -e $status_filename;

my $archlib =
nshift @{ $status{pkg_config_dir} }, $my_pkg_config_dir;

mkdir '_alien' unless -d '_alien';
open my $fh, '>', $status_filename;
print $fh JSON::PP->new->utf8->canonical->encode(\%status);
close $fh;
Scalar-List-Utils ( P/PE/PEVANS/Scalar-List-Utils-1.70.tar.gz, PEVANS, 2025; MetaCPAN )
Scalar-List-Utils/lib/List/Util.pm ( view source; MetaCPAN )
_Pair::key   { shift->[0] }
sub List::Util::_Pair::value { shift->[1] }
sub List::Util::_Pair::TO_JSON { [ @{+shift} ] }

=head1 NAME

List::Util - A selection of general-utility list subroutines

=he
y;
       my $value = $pair->value;
       ...
    }

Since version C<1.51> they also have a C<TO_JSON> method to ease
serialisation.

=head2 unpairs

    my @kvlist = unpairs @pairs

I<Since version 
CPANPLUS-Dist-Debora ( V/VO/VOEGELAS/CPANPLUS-Dist-Debora-0.018.tar.gz, VOEGELAS, 2025; MetaCPAN )
CPANPLUS-Dist-Debora/lib/CPANPLUS/Dist/Debora/Package.pm ( view source; MetaCPAN )
 my $self = shift;

    my $meta;

    my $builddir = $self->builddir;
    META:
    for (qw(META.json META.yml)) {
        my $metafile = catfile($builddir, $_);
        if (-f $metafile) {
         
CPANPLUS-Dist-Debora ( V/VO/VOEGELAS/CPANPLUS-Dist-Debora-0.018.tar.gz, VOEGELAS, 2025; MetaCPAN )
CPANPLUS-Dist-Debora/lib/CPANPLUS/Dist/Debora/Package/Debian.pm ( view source; MetaCPAN )
O-Compress
    JSON-PP
    Module-CoreList
    Pod-Checker
    Pod-Parser
    Pod-Perldoc
    Pod-Usage
    podlators
    Test-Harness
);

# Version quirks.
my %VERSION_FOR
    = ('JSON-PP' => sub { s
Alien-pkgconf ( P/PL/PLICEASE/Alien-pkgconf-0.21.tar.gz, PLICEASE, 2025; MetaCPAN )
Alien-pkgconf/script/fetch.pl ( view source; MetaCPAN )
use strict;
use warnings;
use HTTP::Tiny;
use JSON::PP qw( encode_json );
use File::Spec;
use File::Path qw( mkpath );
use File::Basename qw( dirname basename );

# this is somewhat brittle, but is lo
 and reuse only at your
# own risk!

my $status_filename = File::Spec->catfile('_alien', '02fetch.json');
exit if -e $status_filename;

my @dirs = (
  [ '_alien', 'tar' ],
  [ '_alien', 'build', 'stat
stem 'cp', "$dir/$fn", "_alien/tar/$fn";
  open my $fh, '>', $status_filename;
  print $fh encode_json({ filename => "_alien/tar/$fn" });
  close $status_filename;
  exit;
}

my $url = 'https://distfi
App-LinkSite ( D/DA/DAVECROSS/App-LinkSite-0.0.17.tar.gz, DAVECROSS, 2025; MetaCPAN )
App-LinkSite/lib/App/LinkSite.pm ( view source; MetaCPAN )
$] >= 5.038, 'warnings', qw[experimental::signatures experimental::class];

  use Template;
  use JSON;
  use Path::Tiny;
  use File::Find;
  use File::Basename;
  use FindBin '$Bin';
  use File::Shar
e;
  use App::LinkSite::Link;
  use App::LinkSite::Social;

  field $file :reader :param = 'links.json';
  # Where to look for the templates.
  # If we've been installed from CPAN, then File::Share::d
eld $site :reader :param = undef;

  field $tt;

  ADJUST {
    my $json = path($file)->slurp;
    my $data = JSON->new->decode($json);

    $ga4 = $data->{ga4} // '';

    $tt = Template->new({
     
Alien-pkgconf ( P/PL/PLICEASE/Alien-pkgconf-0.21.tar.gz, PLICEASE, 2025; MetaCPAN )
Alien-pkgconf/script/stage.pl ( view source; MetaCPAN )
use File::Spec;
use JSON::PP qw( encode_json decode_json );
use File::Copy qw( cp );
use File::Path qw( mkpath );

my $status_filename = File::Spec->catfile('_alien', '05stage.json');
exit if -e $stat
File::Spec->catfile('_alien', "04build_$type.json");
    open my $fh, '<', $fn;
    my $json = decode_json(do { local $/; <$fh> });
    close $fh;
    $json;
  };

  next if $build->{skip};

  recurse
_dir, 'status.json');
  open my $fh, '>', $filename;
  print $fh JSON::PP->new->utf8->canonical->encode(\%status);
  close $fh;
}

{
  open my $fh, '>', $status_filename;
  print $fh JSON::PP->new->ut
App-LinkSite ( D/DA/DAVECROSS/App-LinkSite-0.0.17.tar.gz, DAVECROSS, 2025; MetaCPAN )
App-LinkSite/lib/App/LinkSite/Site.pm ( view source; MetaCPAN )
17';
  use strict;
  use warnings;
  no if $] >= 5.038, 'warnings', 'experimental::class';

  use JSON;

  field $name :reader :param;
  field $handle :reader :param;
  field $image :reader :param;
  
d $links :reader :param = [];

=head1 METHODS

=head2 json_ld

Returns a JSON/LD fragment for this web site.

=cut

  method json_ld {
    my $json = {
      '@context' => 'https://schema.org',
      
   },
      relatedLink => [ map { $_->link } $self->links->@* ],
    };

    return JSON->new->pretty->encode($json);
  }
}

1;

=head1 AUTHOR

Dave Cross <dave@davecross.co.uk>

=head1 COPYRIGHT AND
Astro-App-Satpass2 ( W/WY/WYANT/Astro-App-Satpass2-0.057.tar.gz, WYANT, 2025; MetaCPAN )
Astro-App-Satpass2/lib/Astro/App/Satpass2/Format.pm ( view source; MetaCPAN )
ass of this module. It is intended for debugging, and simply dumps
its arguments in Data::Dumper, JSON, or YAML format depending on how it
is configured and what modules are installed

=head1 SUPPORT
Astro-App-Satpass2 ( W/WY/WYANT/Astro-App-Satpass2-0.057.tar.gz, WYANT, 2025; MetaCPAN )
Astro-App-Satpass2/lib/Astro/App/Satpass2/Format/Dump.pm ( view source; MetaCPAN )
 = '0.057';

my %dumper_hash = (
    'YAML' => 'Dump',
    'Data::Dumper' => 'Dumper',
    'JSON' => 'to_json',
);

{

    my $dumper_default;

    sub new {
	my ( $class, @args ) = @_;
	my $self = $c
t->dumper( 'YAML,Data::Dumper' );

The known dumper classes are L<Data::Dumper|Data::Dumper>, L<JSON|JSON>,
and L<YAML|YAML>.

=head1 SUPPORT

Support is by the author. Please file bug reports at
L<ht
Astro-App-Satpass2 ( W/WY/WYANT/Astro-App-Satpass2-0.057.tar.gz, WYANT, 2025; MetaCPAN )
Astro-App-Satpass2/lib/Astro/App/Satpass2.pm ( view source; MetaCPAN )
cting
that template. For example, loading F<eg/pass_json.tt> as template
C<'pass_json'> makes C<-json> a valid option that uses template
C<'pass_json'> to format the TLE.

B<Note well> that unlike the
lecting
that template. For example, loading F<eg/tle_json.tt> as template
C<'tle_json'> makes C<-json> a valid option that uses template
C<'tle_json'> to format the TLE.

The template selector options
cified, the rightmost
one riles. For example, given template C<'tle_json'>,

 satpass2> tle -verbose -json

uses template C<'tle_json'> to display the output.

=head2 unexport

 $satpass2->unexport( $
CPAN-MetaCurator ( R/RS/RSAVAGE/CPAN-MetaCurator-1.00.tgz, RSAVAGE, 2025; MetaCPAN )
CPAN-MetaCurator/lib/CPAN/MetaCurator.pm ( view source; MetaCPAN )
ose 'export all'
2: Choose 'JSON format' in the pop-up
3: The file tiddlers.json will appear in your downloads directory (eg ~/Downloads/ under Debian)
4: Move tiddlers.json into the distro's data/ as
s/create.tables.pl
3: scripts/populate.sqlite.tables.pl
This reads data/cpan.metacurator.tiddlers.json and outputs data/cpan.metacurator.sqlite
4: scripts/export.as.tree.pl
This reads data/cpan.metacu
CPAN-MetaCurator ( R/RS/RSAVAGE/CPAN-MetaCurator-1.00.tgz, RSAVAGE, 2025; MetaCPAN )
CPAN-MetaCurator/lib/CPAN/MetaCurator/Util/Config.pm ( view source; MetaCPAN )
required	=> 0,
);

has tiddlers_path =>
(
	default		=> sub{return 'data/cpan.metacurator.tiddlers.json'},
	is			=> 'rw',
	isa			=> Str,
	required	=> 0,
);

our $VERSION = '1.00';

# ------------------
Text-CSV_XS ( H/HM/HMBRAND/Text-CSV_XS-1.61.tgz, HMBRAND, 2025; MetaCPAN )
Text-CSV_XS/CSV_XS.pm ( view source; MetaCPAN )
);

=head2 Converting CSV to JSON

 use Text::CSV_XS qw( csv );
 use JSON; # or Cpanel::JSON::XS for better performance

 # AoA (no header interpretation)
 say encode_json (csv (in => "file.csv"));

 
# AoH (convert to structures)
 say encode_json (csv (in => "file.csv", bom => 1));

Yes, it is that simple.

=head2 The examples folder

For more extended examples, see the F<examples/> C<1>. sub-dire
CPAN-MetaCurator ( R/RS/RSAVAGE/CPAN-MetaCurator-1.00.tgz, RSAVAGE, 2025; MetaCPAN )
CPAN-MetaCurator/lib/CPAN/MetaCurator/Util/Import.pm ( view source; MetaCPAN )
r().
use DateTime::Tiny;

use File::Spec;
use File::Slurper 'read_text';

use Moo;
use Mojo::JSON 'from_json';

use Text::CSV::Encoded;
use Types::Standard qw/Str/;

our $VERSION = '1.00';

# --------
::Spec -> catfile($self -> home_path, $self -> tiddlers_path);
	my($json)		= read_text($file_name, 'UTF-8');

	return from_json $json;

} # End of read_tiddlers_file.
# -------------------------------
App-perlbrew ( G/GU/GUGOD/App-perlbrew-1.02.tar.gz, GUGOD, 2025; MetaCPAN )
App-perlbrew/lib/App/perlbrew.pm ( view source; MetaCPAN )
quire Cwd;
    @INC = @oldinc;
}

use Getopt::Long ();
use CPAN::Perl::Releases ();
use JSON::PP qw( decode_json );
use File::Copy qw( copy move );
use Capture::Tiny ();

use App::Perlbrew::Util qw( f
  my $json = http_get('https://fastapi.metacpan.org/v1/release/versions/perl')
        or die "\nERROR: Unable to retrieve list of perls from Metacpan.\n\n";

    my $decoded = decode_json($json);
   
 }
    }

    my $json = http_get("https://fastapi.metacpan.org/v1/release/_search?size=1&q=name:perl-${version}");

    my $result;
    unless ( $json and $result = decode_json($json)->{hits}{hits}[0
WebService-OurWorldInData ( D/DU/DUFFEE/WebService-OurWorldInData-0.03.tar.gz, DUFFEE, 2025; MetaCPAN )
WebService-OurWorldInData/lib/WebService/OurWorldInData/Catalog.pm ( view source; MetaCPAN )
search results for datasets

use Moo;
extends 'WebService::OurWorldInData';

use Carp;
use JSON qw(decode_json);
use PerlX::Maybe qw( maybe provided );
use Types::Standard qw( Str Bool Enum ); # Int A
Playwright ( T/TE/TEODESIAN/Playwright-1.532.tar.gz, TEODESIAN, 2025; MetaCPAN )
Playwright/lib/Playwright/Util.pm ( view source; MetaCPAN )
laywright::Util;
$Playwright::Util::VERSION = '1.532';
use strict;
use warnings;

use v5.28;

use JSON::MaybeXS();
use Carp qw{confess};
use Sereal::Encoder;
use Sereal::Decoder;
use File::Temp;
use P
thod, $fullurl );
    $request->header( 'Content-type' => 'application/json' );
    $request->content( JSON::MaybeXS::encode_json( \%args ) );
    my $response = $ua->request($request);
    my $conten
server failed to spawn!"
      if $content =~ m/^Can't connect to/;

    my $decoded = JSON::MaybeXS::decode_json($content);
    my $msg     = $decoded->{message};

    confess($msg) if $decoded->{err
WebService-OurWorldInData ( D/DU/DUFFEE/WebService-OurWorldInData-0.03.tar.gz, DUFFEE, 2025; MetaCPAN )
WebService-OurWorldInData/lib/WebService/OurWorldInData/Chart.pm ( view source; MetaCPAN )
nt and collects the results

use Moo;
extends 'WebService::OurWorldInData';

use Carp;
use JSON qw(decode_json);
use PerlX::Maybe qw( maybe provided );
use Types::Standard qw( Str Bool Enum ); # Int A

    my $url = $self->get_path . '.metadata.json';

    my $response = $self->get_response( $url );
    my $json = decode_json( $response );
    return $json;
}

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

    my
ta.json

    my $json   = $chart->metadata(); # get the metadata
    my $column = (keys $result->{columns}->%*)[0]; # grab one of the really long keys
    print $json->{chart}{title},
        $json->{
Brannigan ( I/ID/IDOPEREL/Brannigan-2.1.tar.gz, IDOPEREL, 2025; MetaCPAN )
Brannigan/lib/Brannigan.pm ( view source; MetaCPAN )
tructures

Brannigan can validate and process complex data structures, possibly deserialized
from JSON or XML data sent to web services and APIs.

=back

Brannigan's approach to data validation is as 

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