Group
Extension

Matches 35358

App-CSVUtils ( P/PE/PERLANCAR/App-CSVUtils-1.036.tar.gz, PERLANCAR, 2025; MetaCPAN )
App-CSVUtils/lib/App/CSVUtils/csv_dump.pm ( view source; MetaCPAN )
> <<'_',

This utility reads CSV file then dumps it as a text table, or as JSON if you
specify the `--format=json` or `--json` option.

_

    add_args => {
        hash => {
            summary => 'D
_result' => 0,
        },
        {
            summary => 'Convert CSV to JSON',
            src => '[[prog]] file.csv --json',
            src_plang => 'bash',
            test => 0,
            'x.


=back

This utility reads CSV file then dumps it as a text table, or as JSON if you
specify the C<--format=json> or C<--json> option.

This function is not exported.

Arguments ('*' denotes required
App-CSVUtils ( P/PE/PERLANCAR/App-CSVUtils-1.036.tar.gz, PERLANCAR, 2025; MetaCPAN )
App-CSVUtils/lib/App/CSVUtils/csv_sort_fields.pm ( view source; MetaCPAN )
der (`-r`), sort case-insensitively (`-i`), or
provides the ordering example, e.g. `--by-examples-json '["a","c","b"]'`, or use
`--by-code` or `--by-sortsub`.

_

    add_args => {
        %App::CSVUt
 (C<-r>), sort case-insensitively (C<-i>), or
provides the ordering example, e.g. C<--by-examples-json '["a","c","b"]'>, or use
C<--by-code> or C<--by-sortsub>.

This function is not exported.

Argume
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/etc/generate-examples.pl ( view source; MetaCPAN )
ash_pm_file = "$Bin/../lib/YAML/PP/Schema/Tie/IxHash.pm";

my $yp = YAML::PP->new( schema => [qw/ JSON Perl Tie::IxHash /] );

generate(
    file => $schema_perl_pm_file,
    tests => $tests_perl,
);
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/etc/json-numbers.pl ( view source; MetaCPAN )


use JSON ();
use JSON::PP ();
use JSON::XS ();
use Cpanel::JSON::XS ();
require Mojolicious;
use Mojo::JSON ();
use B ();
use Text::Table;

my @classes = qw/ JSON JSON::PP JSON::XS Cpanel::JSON::XS 
o::JSON /;

my $t = Text::Table->new(
    qw/
        Class
        Version
        3 IV NV PV
        3.140 IV NV PV
        3.00 IV NV PV
        0.3e3 IV NV PV
        encode
    /,
);

my $json = 
lass eq 'Mojo::JSON' ? Mojolicious->VERSION : $class->VERSION;
    my @row = ( $class, $version );
    my $decode = $class->can("decode_json");
    my $encode = $class->can("encode_json");
    my $dat
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/lib/YAML/PP/Dumper.pm ( view source; MetaCPAN )
) {
        # JSON::PP and boolean.pm always return the same reference for booleans
        # Avoid printing *aliases in those case
        if (ref $doc eq 'boolean' or ref $doc eq 'JSON::PP::Boolean'
Geo-Coder-CA ( N/NH/NHORNE/Geo-Coder-CA-0.15.tar.gz, NHORNE, 2025; MetaCPAN )
Geo-Coder-CA/lib/Geo/Coder/CA.pm ( view source; MetaCPAN )
Services_API.html for the US for the future

use strict;
use warnings;

use Carp;
use Encode;
use JSON::MaybeXS;
use LWP::UserAgent;
use URI;

=head1 NAME

Geo::Coder::CA - Provides a Geo-Coding funct
>{host}/some_location");
	$location =~ s/\s/+/g;
	my %query_parameters = ('locate' => $location, 'json' => 1, 'strictmode' => 1);
	$uri->query_form(%query_parameters);
	my $url = $uri->as_string();

	
s->content_type('text/plain');	# May be needed to decode correctly

	my $json = JSON::MaybeXS->new()->utf8();
	if(my $rc = $json->decode($res->decoded_content())) {
		if($rc->{'error'}) {
			# Sorry -
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/ext/yaml-test-schema/etc/generate-schema-html.pl ( view source; MetaCPAN )
 {
            $examples{ $input }->{ $schema } = $def;
        }
    }
}
my @keys = qw/ failsafe json core yaml11 /;
for my $input (sort keys %examples) {
    my $schemas = $examples{ $input };
    m
x->{core}->[0] } <=> $type_index{ $y->{core}->[0] }
        || $type_index{ $x->{json}->[0] } <=> $type_index{ $y->{json}->[0] }
        || lc $a cmp lc $b
        || $a cmp $b
}
sub schema_table {
  
 ? 'YAML.pm' : $_;
        qq{<th colspan="2" class="border-left">$m</th>\n};
    } (qw/ Failsafe JSON Core /, 'YAML 1.1');
    $header .= qq{</tr>\n};
    $html .= $header;
    $html .= qq{<tr><td></
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/lib/YAML/PP/Schema.pm ( view source; MetaCPAN )
', 'JSON::PP::Boolean');
            last;
        }
        elsif ($b eq 'JSON::PP') {
            require JSON::PP;
            $true ||= \&_bool_jsonpp_true;
            $false ||= \&_bool_jsonpp_f
alse;
            push @bool_class, 'JSON::PP::Boolean';
        }
        elsif ($b eq 'boolean') {
            require boolean;
            $true ||= \&_bool_booleanpm_true;
            $false ||= \

        else {
            die "Invalid value for 'boolean': '$b'. Allowed: ('perl', 'boolean', 'JSON::PP')";
        }
    }
    # Ensure booleans are resolved
    $true ||= \&_bool_perl_true;
    $
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/lib/YAML/PP/Schema/YAML1_1.pm ( view source; MetaCPAN )
s;
package YAML::PP::Schema::YAML1_1;

our $VERSION = 'v0.39.0'; # VERSION

use YAML::PP::Schema::JSON qw/
    represent_int represent_float represent_literal represent_bool
    represent_undef
/;

us
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/lib/YAML/PP.pm ( view source; MetaCPAN )
ckage YAML::PP;

our $VERSION = 'v0.39.0'; # VERSION

use YAML::PP::Schema;
use YAML::PP::Schema::JSON;
use YAML::PP::Loader;
use YAML::PP::Dumper;
use Scalar::Util qw/ blessed /;
use Carp qw/ croak /
  my $ypp = YAML::PP->new( schema => ['Failsafe'] );
    # use YAML 1.2 JSON Schema
    my $ypp = YAML::PP->new( schema => ['JSON'] );
    # use YAML 1.2 Core Schema
    my $ypp = YAML::PP->new( schem
on_directive => 0,
    );

Options:

=over

=item boolean

Values: C<perl> (currently default), C<JSON::PP>, C<boolean>, C<perl_experimental>

This option is for loading and dumping.

In case of perl 
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/etc/generate-schema-html.pl ( view source; MetaCPAN )
 {
            $examples{ $input }->{ $schema } = $def;
        }
    }
}
my @keys = qw/ failsafe json core yaml11 /;
for my $input (sort keys %examples) {
    my $schemas = $examples{ $input };
    m
x->{core}->[0] } <=> $type_index{ $y->{core}->[0] }
        || $type_index{ $x->{json}->[0] } <=> $type_index{ $y->{json}->[0] }
        || lc $a cmp lc $b
        || $a cmp $b
}
sub schema_table {
  
 ? 'YAML.pm' : $_;
        qq{<th colspan="2" class="border-left">$m</th>\n};
    } (qw/ Failsafe JSON Core /, 'YAML 1.1', @mods);
    $header .= qq{</tr>\n};
    $html .= $header;
    $html .= qq{<tr
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/etc/schema-test-yaml-modules.pl ( view source; MetaCPAN )
;

use Data::Dumper;
use FindBin '$Bin';
use lib "$Bin/../lib";
use YAML::PP;
use JSON::PP;
$YAML::XS::Boolean = 'JSON::PP';
use YAML::XS ();
$YAML::Syck::ImplicitTyping = 1;
use YAML::Syck ();
$YAML:
) = @_;
    return 'null' unless defined $value;
    if (ref $value) {
        if (ref $value eq 'JSON::PP::Boolean') {
            return 'bool';
        }
        return 'unknown';
    }
    my $fla
Geo-Coder-US-Census ( N/NH/NHORNE/Geo-Coder-US-Census-0.07.tar.gz, NHORNE, 2025; MetaCPAN )
Geo-Coder-US-Census/lib/Geo/Coder/US/Census.pm ( view source; MetaCPAN )
package Geo::Coder::US::Census;

use strict;
use warnings;

use Carp;
use Encode;
use JSON::MaybeXS;
use HTTP::Request;
use LWP::UserAgent;
use LWP::Protocol::https;
use URI;
use Geo::StreetAddress::U
$geo_coder = Geo::Coder::US::Census->new();
      # Get geocoding results (as a hash decoded from JSON)
      my $location = $geo_coder->geocode(location => '4600 Silver Hill Rd., Suitland, MD');
    
reference -
making it easy to integrate into different codebases.
It decodes the JSON response from the API using L<JSON::MaybeXS>,
providing the result as a hash.
This allows easy extraction of latit
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/lib/YAML/PP/Schema/Core.pm ( view source; MetaCPAN )
ings;
package YAML::PP::Schema::Core;

our $VERSION = 'v0.39.0'; # VERSION

use YAML::PP::Schema::JSON qw/
    represent_int represent_float represent_literal represent_bool
    represent_undef
/;

us
  tag => 'tag:yaml.org,2002:int',
        match => [ regex => $RE_INT_CORE => \&YAML::PP::Schema::JSON::_to_int ],
    );
    $schema->add_resolver(
        tag => 'tag:yaml.org,2002:int',
        mat
g => 'tag:yaml.org,2002:float',
        match => [ regex => $RE_FLOAT_CORE => \&YAML::PP::Schema::JSON::_to_float ],
    );
    $schema->add_resolver(
        tag => 'tag:yaml.org,2002:float',
       
CatalystX-RequestModel ( J/JJ/JJNAPIORK/CatalystX-RequestModel-0.020.tar.gz, JJNAPIORK, 2025; MetaCPAN )
CatalystX-RequestModel/lib/CatalystX/QueryModel.pm ( view source; MetaCPAN )
you have special handling needs.  For example:

    has notes => (is=>'ro', property=>+{ expand=>'JSON' });

Here's the current list of property settings and what they do.  You can also request the te
ay those formats work you can't be sure if a value is flat or an array. This isn't a problem with
JSON encoded request bodies.  You'll need to check the docs for the Content Body Parser you are using 
g it.   Right now there's only one value this will take,
which is C<JSON> and will then parse the value into a structure using a JSON parser.   Again this is mostly
useful for HTML form posting and co
Net-Domain-Parts ( S/ST/STEVEB/Net-Domain-Parts-0.04.tar.gz, STEVEB, 2025; MetaCPAN )
Net-Domain-Parts/bin/generate-tld-json.pl ( view source; MetaCPAN )
#!/usr/bin/env perl

use warnings;
use strict;

use Data::Dumper;
use File::Edit::Portable;
use JSON;

# This script updates the lib/Net/Domain/Parts.pm file with updated TLD data

# To use it, downlo
entioned library file, then run the script

my $tld_txt_file = 'data/tld.txt';
my $tld_json_file = 'data/tld.json';

open my $fh, '<', $tld_txt_file or die "Can't open $tld_txt_file for reading: $!";
pen my $wfh, '>', $tld_json_file or die "Can't open $tld_json_file for writing: $!";
my $json = JSON->new->pretty->encode(\%data);
print $wfh $json;
print "\nWrote out $tld_json_file\n";
close $wfh;

Mail-BIMI ( M/MB/MBRADSHAW/Mail-BIMI-3.20250130.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-BIMI/lib/Mail/BIMI/Prelude.pm ( view source; MetaCPAN )


use open ':std', ':encoding(UTF-8)';
use Import::Into;
use Mail::BIMI::Constants;
use Carp;
use JSON;

sub import {
  strict->import;
  warnings->import;
  feature->import($_) for ( qw{ postderef si
} );
  Mail::BIMI::Constants->import::into(scalar caller);
  Carp->import::into(scalar caller);
  JSON->import::into(scalar caller);
}

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

Mail::BIMI::Pre
=head1 REQUIRES

=over 4

=item * L<Carp|Carp>

=item * L<Import::Into|Import::Into>

=item * L<JSON|JSON>

=item * L<Mail::BIMI::Constants|Mail::BIMI::Constants>

=item * L<feature|feature>

=item * 
Attean ( G/GW/GWILLIAMS/Attean-0.035.tar.gz, GWILLIAMS, 2025; MetaCPAN )
Attean/lib/Test/Attean/W3CManifestTestSuite.pm ( view source; MetaCPAN )
 $results;
	} elsif ($file =~ /[.](srj|json)/) {
		my $model	= memory_model();
		open(my $fh, '<', $file) or die $!;
		my $parser	= Attean->get_parser('SPARQLJSON')->new();
		my $results	= $parser->pa
Attean ( G/GW/GWILLIAMS/Attean-0.035.tar.gz, GWILLIAMS, 2025; MetaCPAN )
Attean/lib/AtteanX/Parser/SPARQLJSON.pm ( view source; MetaCPAN )
::SPARQLJSON - SPARQL JSON Parser

=head1 VERSION

This document describes AtteanX::Parser::SPARQLJSON version 0.035

=head1 SYNOPSIS

 use Attean;
 my $parser = Attean->get_parser('SPARQLJSON')->new(
ackage AtteanX::Parser::SPARQLJSON 0.035 {
	use Attean;
	use Moo;
	use JSON;
	use Encode qw(decode);
	
	sub canonical_media_type { return "application/sparql-results+json" }

	sub media_types {
		retu
rn [qw(application/sparql-results+json)];
	}
	
	sub file_extensions { return [qw(srj)] }

	with 'Attean::API::ResultOrTermParser';
	with 'Attean::API::Parser';
	with 'Attean::API::AtOnceParser';

=ite
Data-Record-Serialize-Encode-dbi ( D/DJ/DJERIUS/Data-Record-Serialize-Encode-dbi-1.07.tar.gz, DJERIUS, 2025; MetaCPAN )
Data-Record-Serialize-Encode-dbi/lib/Data/Record/Serialize/Encode/dbi.pm ( view source; MetaCPAN )
ead2 to_bool

   $bool = $self->to_bool( $truthy );

Convert a truthy value to something that the JSON encoders will recognize as a boolean.

=head2 flush

  $s->flush;

Flush the queue of records to 

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