Group
Extension

Matches 35358

Data-Roundtrip ( B/BL/BLIAKO/Data-Roundtrip-0.30.tar.gz, BLIAKO, 2025; MetaCPAN )
Data-Roundtrip/script/json2yaml.pl ( view source; MetaCPAN )
ported
);

sub usage { return
	"Usage : $0 [--I 'a-json-string' | --i 'afile.json'] [--o afile] [--(no-)escape-unicode|-e]\n"
	."\nIt will read a JSON string from command line (-I), or from a file (-i
TDIN> }
}

my $result = Data::Roundtrip::json2yaml($INPUT_STRING, \%params);
if( ! defined $result ){ print STDERR "$0 : error, call to ".'Data::Roundtrip::json2yaml()'." has failed.\n"; exit(1) }

if
AME

json2yaml.pl : convert JSON to YAML with formatting options.

=head1 VERSION

Version 0.30

=head1 SYNOPSIS

    json2yaml.pl -i "input.json" -o "output.yaml" --(no-)escape-unicode

    json2yaml
Data-Roundtrip ( B/BL/BLIAKO/Data-Roundtrip-0.30.tar.gz, BLIAKO, 2025; MetaCPAN )
Data-Roundtrip/script/yaml2json.pl ( view source; MetaCPAN )
 }
}

my $result = Data::Roundtrip::yaml2json($INPUT_STRING, \%params);
if( ! defined $result ){ print STDERR "$0 : error, call to ".'Data::Roundtrip::yaml2jsonl()'." has failed.\n"; exit(1) }

if( de
aml2json.pl : convert YAML to JSON with formatting options

=head1 VERSION

Version 0.30

=head1 SYNOPSIS

    yaml2json.pl -i "input.yaml" -o "output.json" --escape-unicode --pretty

    yaml2json.pl
 -e < "input.yaml" > "output.json"

    # press CTRL-D when done typing YAML to STDIN
    # input must be less than 4K long!
    yaml2json.pl

    # Read input from clipboard or write output to clipbo
Data-Roundtrip ( B/BL/BLIAKO/Data-Roundtrip-0.30.tar.gz, BLIAKO, 2025; MetaCPAN )
Data-Roundtrip/script/json2perl.pl ( view source; MetaCPAN )
eturn
	"Usage : $0 [--I 'a-json-string' | --i 'afile.json'] [--o afile] [--(no-)escape-unicode|-e] [--(no-)pretty] [--(no-)terse] [--(no-)indent]\n"
	."\nIt will read a JSON string from command line (
TDIN> }
}

my $result = Data::Roundtrip::json2dump($INPUT_STRING, \%params);
if( ! defined $result ){ print STDERR "$0 : error, call to ".'Data::Roundtrip::json2dump()'." has failed.\n"; exit(1) }

if
NAME

json2perl.pl : convert JSON data to a Perl variable (dump) which can be parsed or eval'ed by any Perl script.

=head1 VERSION

Version 0.30

=head1 SYNOPSIS

    json2perl.pl -i "input.json" -o 
Ixchel ( V/VV/VVELOX/Ixchel-0.13.0.tar.gz, VVELOX, 2025; MetaCPAN )
Ixchel/lib/Ixchel/Actions/github_fetch_release_asset.pm ( view source; MetaCPAN )
::Actions::github_fetch_release_asset;

use 5.006;
use strict;
use warnings;
use File::Slurp;
use JSON;
use Ixchel::functions::github_fetch_release_asset;
use base 'Ixchel::Actions::base';

=head1 NAM
Net-API-CPAN ( J/JD/JDEGUEST/Net-API-CPAN-v0.1.6.tar.gz, JDEGUEST, 2025; MetaCPAN )
Net-API-CPAN/build/cpan-openapi-spec-3.0.0.pl ( view source; MetaCPAN )
                    content =>
                        {
                            'application/json' =>
                            {
                                schema =>
                     
                    content =>
                        {
                            "application/json" =>
                            {
                                schema =>
                     
              description => 'Although the `POST` method is supported, the API does not recognise JSON payload, but only query string.',
                    content =>
                    {
          
Net-API-CPAN ( J/JD/JDEGUEST/Net-API-CPAN-v0.1.6.tar.gz, JDEGUEST, 2025; MetaCPAN )
Net-API-CPAN/build/build_modules.pl ( view source; MetaCPAN )

# Built with ./build/fields2api_def.pl
my $api_specs = $base_dir->child( 'api.json' );
my $specs = $api_specs->load_json || die( $api_specs->error );
my $mod_dir = $base_dir->child( 'modules' );
$mod
 );
    }
    
    my $sample_file = $base_dir->child( "$object.json" );
    my $sample_data;
    $sample_data = $sample_file->load_json( boolean_values => [\0, \1] ) if( $sample_file->exists );
    m
k( '${module_class}' );
};

use strict;
use warnings;

my \$test_data = Module::Generic->new->new_json->decode( join( '', <DATA> ) );
\$test_data->{debug} = \$DEBUG;
my \$this;
my \$obj = ${module_cla
Wikibase-Datatype-Struct ( S/SK/SKIM/Wikibase-Datatype-Struct-0.15.tar.gz, SKIM, 2025; MetaCPAN )
Wikibase-Datatype-Struct/Struct/Value.pm ( view source; MetaCPAN )
N

This conversion is between objects defined in Wikibase::Datatype and structures
serialized via JSON to MediaWiki.

=head1 SUBROUTINES

=head2 C<obj2struct>

 my $struct_hr = obj2struct($obj, $base_
Wikibase-Datatype-Print ( S/SK/SKIM/Wikibase-Datatype-Print-0.19.tar.gz, SKIM, 2025; MetaCPAN )
Wikibase-Datatype-Print/Print.pm ( view source; MetaCPAN )
=over

=item L<Wikibase::Datatype>

Wikibase datatypes.

=item L<Wikibase::Datatype::JSON>

Wikibase structure JSON serialization.

=item L<Wikibase::Datatype::Struct>

Wikibase structure serializatio
HTML-OSM ( N/NH/NHORNE/HTML-OSM-0.09.tar.gz, NHORNE, 2025; MetaCPAN )
HTML-OSM/lib/HTML/OSM.pm ( view source; MetaCPAN )
SM;

use strict;
use warnings;

use Carp;
use CHI;
use Object::Configure;
use LWP::UserAgent;
use JSON::MaybeXS;
use Params::Get;
use Scalar::Util;
use Time::HiRes;

=head1 NAME

HTML::OSM - Generate 

	$ua->env_proxy(1);
	$location =~ s/\s/%20/g;
	my $url = 'https://' . $self->{'host'} . "?format=json&q=$location";

	# Create a cache key based on the location (might want to use a stronger hash fun
mestamp
	$self->{'last_request'} = time();

	if($response->is_success()) {
		if(my $data = decode_json($response->decoded_content())) {
			if(ref($data) eq 'ARRAY') {
				$data = @{$data}[0];
			}
			
Wikibase-Datatype-Struct ( S/SK/SKIM/Wikibase-Datatype-Struct-0.15.tar.gz, SKIM, 2025; MetaCPAN )
Wikibase-Datatype-Struct/Struct/Value/Time.pm ( view source; MetaCPAN )
N

This conversion is between objects defined in Wikibase::Datatype and structures
serialized via JSON to MediaWiki.

=head1 SUBROUTINES

=head2 C<obj2struct>

 my $struct_hr = obj2struct($obj, $base_
Cookie ( J/JD/JDEGUEST/Cookie-v0.3.9.tar.gz, JDEGUEST, 2025; MetaCPAN )
Cookie/lib/Cookie.pm ( view source; MetaCPAN )
,
        time_zone => 'GMT',
    );
    $dt->set_formatter( $fmt );
    return( $dt );
}

sub TO_JSON
{
    my $self = shift( @_ );
    my $fields = $self->fields;
    my $ref = {};
    foreach my $m
e string.

=head2 TO_JSON

This method is used so that if the cookie object is part of some data encoded into json, this will convert the cookie data properly to be used by L<JSON>

=head1 SIGNED COOK
Wikibase-Datatype-Struct ( S/SK/SKIM/Wikibase-Datatype-Struct-0.15.tar.gz, SKIM, 2025; MetaCPAN )
Wikibase-Datatype-Struct/Struct/Value/String.pm ( view source; MetaCPAN )
N

This conversion is between objects defined in Wikibase::Datatype and structures
serialized via JSON to MediaWiki.

=head1 SUBROUTINES

=head2 C<obj2struct>

 my $struct_hr = obj2struct($obj);

Conv
Cookie ( J/JD/JDEGUEST/Cookie-v0.3.9.tar.gz, JDEGUEST, 2025; MetaCPAN )
Cookie/lib/Cookie/Domain.pm ( view source; MetaCPAN )
teTime;
    use DateTime::Format::Strptime;
    use Module::Generic::File qw( tempfile );
    use JSON;
    use Net::IDN::Encode ();
    use Wanted;
    use constant URL => 'https://publicsuffix.org/l
{file} = $base->child( 'public_suffix_list.txt' );
    $self->{json_file} = Module::Generic::File->sys_tmpdir->child( 'public_suffix.json' );
    $self->{meta} = {};
    $self->{min_suffix} = 0;
    $
 have one now
        if( $dont_have_etag && $meta->{etag} )
        {
            $self->save_as_json || return( $self->pass_error );
        }
        return( $self );
    }
    elsif( $code ne 200 
Wikibase-Datatype-Struct ( S/SK/SKIM/Wikibase-Datatype-Struct-0.15.tar.gz, SKIM, 2025; MetaCPAN )
Wikibase-Datatype-Struct/Struct/Property.pm ( view source; MetaCPAN )
N

This conversion is between objects defined in Wikibase::Datatype and structures
serialized via JSON to MediaWiki.

=head1 SUBROUTINES

=head2 C<obj2struct>

 my $struct_hr = obj2struct($obj, $base_
Cookie ( J/JD/JDEGUEST/Cookie-v0.3.9.tar.gz, JDEGUEST, 2025; MetaCPAN )
Cookie/lib/Cookies.pm ( view source; MetaCPAN )
Save cookies repository as json
    $jar->save( '/some/where/mycookies.json' ) || die( $jar->error );
    # Load cookies into jar
    $jar->load( '/some/where/mycookies.json' ) || die( $jar->error );

    # Save encrypted
    $jar->save( '/some/where/mycookies.json',
    {
        encrypt => 1,
        key => $key,
        iv => $iv,
        algo => 'AES',
    }) || die( $jar->error );
    # Load 
cookies from encrypted file
    $jar->load( '/some/where/mycookies.json',
    {
        decrypt => 1,
        key => $key,
        iv  => $iv,
        algo => 'AES'
    }) || die( $jar->error );

    
Cookie ( J/JD/JDEGUEST/Cookie-v0.3.9.tar.gz, JDEGUEST, 2025; MetaCPAN )
Cookie/lib/Cookie/Jar.pm ( view source; MetaCPAN )
ire APR::Request::Cookie;
    }
    use Cookie;
    use Cookie::Domain;
    use DateTime;
    use JSON;
    use Module::Generic::HeaderValue;
    use Scalar::Util;
    use URI::Escape ();
    our $VER
->{secret}  = undef;
    # Cookie file type; can also be 'lwp' or 'netscape'
    $self->{type} = 'json';
    $self->{_init_strict_use_sub} = 1;
    $self->SUPER::init( @_ );
    $self->{request} = $re
        json => \&load,
        lwp  => \&load_as_lwp,
        netscape => \&load_as_netscape,
        };
        return( $self->error( "Unknown cookie jar type '$type'. This can be either json, lwp o
Wikibase-Datatype-Struct ( S/SK/SKIM/Wikibase-Datatype-Struct-0.15.tar.gz, SKIM, 2025; MetaCPAN )
Wikibase-Datatype-Struct/Struct/Reference.pm ( view source; MetaCPAN )
N

This conversion is between objects defined in Wikibase::Datatype and structures
serialized via JSON to MediaWiki.

=head1 SUBROUTINES

=head2 C<obj2struct>

 my $struct_hr = obj2struct($obj, $base_
Wikibase-Datatype-Struct ( S/SK/SKIM/Wikibase-Datatype-Struct-0.15.tar.gz, SKIM, 2025; MetaCPAN )
Wikibase-Datatype-Struct/Struct/Value/Sense.pm ( view source; MetaCPAN )
N

This conversion is between objects defined in Wikibase::Datatype and structures
serialized via JSON to MediaWiki.

=head1 SUBROUTINES

=head2 C<obj2struct>

 my $struct_hr = obj2struct($obj);

Conv
Wikibase-Datatype-Struct ( S/SK/SKIM/Wikibase-Datatype-Struct-0.15.tar.gz, SKIM, 2025; MetaCPAN )
Wikibase-Datatype-Struct/Struct/Value/Lexeme.pm ( view source; MetaCPAN )
N

This conversion is between objects defined in Wikibase::Datatype and structures
serialized via JSON to MediaWiki.

=head1 SUBROUTINES

=head2 C<obj2struct>

 my $struct_hr = obj2struct($obj);

Conv
Wikibase-Datatype-Struct ( S/SK/SKIM/Wikibase-Datatype-Struct-0.15.tar.gz, SKIM, 2025; MetaCPAN )
Wikibase-Datatype-Struct/Struct/Value/Item.pm ( view source; MetaCPAN )
N

This conversion is between objects defined in Wikibase::Datatype and structures
serialized via JSON to MediaWiki.

=head1 SUBROUTINES

=head2 C<obj2struct>

 my $struct_hr = obj2struct($obj);

Conv

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