Group
Extension

Matches 35358

CatalystX-RequestModel ( J/JJ/JJNAPIORK/CatalystX-RequestModel-0.020.tar.gz, JJNAPIORK, 2025; MetaCPAN )
CatalystX-RequestModel/lib/CatalystX/RequestModel.pm ( view source; MetaCPAN )
 you can read about below.

See L<CatalystX::RequestModel::ContentBodyParser::JSON> for an example of using this with JSON
request content.

=head1 DESCRIPTION

Dealing with incoming POSTed (or PUTed/
 for handling common incoming
content types such as form URL encoded (common with HTML forms) and JSON as well as the ability to
add in parsing for other types of contents (see L<Catalyst#DATA-HANDLER
 should be able to build upon the meta data
it exposed to do things like auto generate Open API / JSON Schema definition files (TBD but possible).

Basically you convert an unknown hash of values into
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/lib/YAML/PP/Schema/Catchall.pm ( view source; MetaCPAN )
l') {
            $empty_null = 1;
        }
        else {
            croak "Invalid option for JSON Schema: '$opt'";
        }
    }

    $schema->add_resolver(
        tag => qr{^(?:!|tag:)},
    
ead1 NAME

YAML::PP::Schema::JSON - YAML 1.2 JSON Schema

=head1 SYNOPSIS

    my $yp = YAML::PP->new( schema => ['JSON'] );
    my $yp = YAML::PP->new( schema => [qw/ JSON empty=str /] );
    my $yp 
= YAML::PP->new( schema => [qw/ JSON empty=null /] );

=head1 DESCRIPTION

=cut
CatalystX-RequestModel ( J/JJ/JJNAPIORK/CatalystX-RequestModel-0.020.tar.gz, JJNAPIORK, 2025; MetaCPAN )
CatalystX-RequestModel/lib/CatalystX/RequestModel/Utils/InvalidRequestNamespace.pm ( view source; MetaCPAN )
X::Utils::DoesHttpException';
 
has 'ns' => (is=>'ro', required=>1);

sub status_code { 400 }
sub error { "JSON Request does not have namespace: @{[ $_[0]->ns]}" }

__PACKAGE__->meta->make_immutable;
CatalystX-RequestModel ( J/JJ/JJNAPIORK/CatalystX-RequestModel-0.020.tar.gz, JJNAPIORK, 2025; MetaCPAN )
CatalystX-RequestModel/lib/CatalystX/RequestModel/Utils/InvalidJSONForValue.pm ( view source; MetaCPAN )
package CatalystX::RequestModel::Utils::InvalidJSONForValue;
 
use Moose;
with 'CatalystX::Utils::DoesHttpException';
 
has 'param' => (is=>'ro', required=>1);
has 'value' => (is=>'ro', required=>1);
has 'parsing_error' => (is=>'ro', required=>1);

sub status_code { 400 }
sub error { "JSON decode error for parameter '@{[ $_[0]->param]}', value '@{[ $_[0]->value ]}': @{[ $_[0]->parsing_error]}" }

CatalystX-RequestModel ( J/JJ/JJNAPIORK/CatalystX-RequestModel-0.020.tar.gz, JJNAPIORK, 2025; MetaCPAN )
CatalystX-RequestModel/lib/CatalystX/RequestModel/Utils/InvalidJSON.pm ( view source; MetaCPAN )
stModel::Utils::InvalidJSON;
 
use Moose;
with 'CatalystX::Utils::DoesHttpException';
 
has 'parsing_error' => (is=>'ro', required=>1);

sub status_code { 400 }
sub error { "JSON decode error ': @{[ $
Check-NetworkSpans ( V/VV/VVELOX/Check-NetworkSpans-0.0.2.tar.gz, VVELOX, 2025; MetaCPAN )
Check-NetworkSpans/lib/Check/NetworkSpans.pm ( view source; MetaCPAN )
e Scalar::Util qw(looks_like_number);
use File::Temp   qw/ tempdir /;
use String::ShellQuote;
use JSON;
use Data::Dumper;

=head1 NAME

Check::NetworkSpans - See if bidirectional traffic is being seen
p' ) {
			my $pcap_json = `tshark -r "$span_name".pcap -T json -J "ip eth tcp udp" 2> /dev/null`;
			if ( $self->{debug} ) {
				print 'DEBUG: dumped ' . $span_name . ".pcap to json\n";
			}
			eval {
cessing json\n";
				}
				my $pcap_data = decode_json($pcap_json);
				$span_packets->{$span_name} = $pcap_data;
			};
			if ($@) {
				if ( $self->{debug} ) {
					print 'DEBUG: parsing json failed.
CatalystX-RequestModel ( J/JJ/JJNAPIORK/CatalystX-RequestModel-0.020.tar.gz, JJNAPIORK, 2025; MetaCPAN )
CatalystX-RequestModel/lib/CatalystX/RequestModel/ContentBodyParser.pm ( view source; MetaCPAN )
er;

use warnings;
use strict;
use Module::Runtime ();
use CatalystX::RequestModel::Utils::InvalidJSONForValue;
use CatalystX::RequestModel::Utils::InvalidRequestNamespace;
use CatalystX::RequestModel
del}) {


        $context->{$data_name} = $self->normalize_json($context->{$data_name}, $data_name) if (($attr_rules->{expand}||'') eq 'JSON');
        $context->{$data_name} = $self->normalize_boole
$self, $param, $value, $key_rules) = @_;

  $value = $self->normalize_json($value, $param) if (($key_rules->{expand}||'') eq 'JSON');

  if($key_rules->{always_array}) {
    $value = $self->normalize_
HTTP-Request-FromCurl ( C/CO/CORION/HTTP-Request-FromCurl-0.55.tar.gz, CORION, 2025; MetaCPAN )
HTTP-Request-FromCurl/lib/HTTP/Request/FromFetch.pm ( view source; MetaCPAN )
se 5.020;
use feature 'signatures';
no warnings 'experimental::signatures';
use Carp 'croak';
use JSON;
use PerlX::Maybe;
use HTTP::Request::CurlParameters;

=head1 NAME

HTTP::Request::FromFetch - tu
$+{options};
    my $u = $+{uri};
    if( defined $o and $o =~ /\S/ ) {
        $options = decode_json($o);
    } else {
        $options = {};
    };

    $options->{uri} = $u;
    $options->{method}
Proch-N50 ( P/PR/PROCH/Proch-N50-1.7.0.tar.gz, PROCH, 2025; MetaCPAN )
Proch-N50/scripts/test.pl ( view source; MetaCPAN )
 Data::Dumper->Dump( [ $seq_stats ], [ qw(*FASTA_stats) ] );
    say color('bold'), "JSON",color('reset');
    my $seq_stats_json = getStats($filepath, 'JSON');
    say $seq_stats_json->{json};
  }
}
CatalystX-RequestModel ( J/JJ/JJNAPIORK/CatalystX-RequestModel-0.020.tar.gz, JJNAPIORK, 2025; MetaCPAN )
CatalystX-RequestModel/lib/CatalystX/RequestModel/DoesRequestModel.pm ( view source; MetaCPAN )
;
    has last_name => (is=>'ro', property=>1);
    has notes => (is=>'ro', property=>+{ expand=>'JSON' });

See L<CatalystX::RequestModel> for a more general overview.

=head1 DESCRIPTION

A role tha
HarfBuzz-Shaper ( J/JV/JV/HarfBuzz-Shaper-0.031.tar.gz, JV, 2025; MetaCPAN )
HarfBuzz-Shaper/hb_src/harfbuzz/hb-buffer.h ( view source; MetaCPAN )
LIZE_FORMAT_TEXT: a human-readable, plain text format.
 * @HB_BUFFER_SERIALIZE_FORMAT_JSON: a machine-readable JSON format.
 * @HB_BUFFER_SERIALIZE_FORMAT_INVALID: invalid format.
 *
 * The buffer ser
 enum {
  HB_BUFFER_SERIALIZE_FORMAT_TEXT	= HB_TAG('T','E','X','T'),
  HB_BUFFER_SERIALIZE_FORMAT_JSON	= HB_TAG('J','S','O','N'),
  HB_BUFFER_SERIALIZE_FORMAT_INVALID	= HB_TAG_NONE
} hb_buffer_seriali
AWS-S3 ( L/LE/LEEJO/AWS-S3-1.00.tar.gz, LEEJO, 2025; MetaCPAN )
AWS-S3/lib/AWS/S3/Request/SetBucketPolicy.pm ( view source; MetaCPAN )
::S3::Request::SetBucketPolicy;

use Moose;
use AWS::S3::Signer;
use AWS::S3::ResponseParser;
use JSON::XS;

with 'AWS::S3::Roles::Request';

has 'bucket' => ( is => 'ro', isa => 'Str', required => 1 
, not sure if it ever worked on VSO
    # Must be able to decode the JSON string:
    # where => sub {
    #     eval { decode_json( $_ ); 1 };
    # }
);

has '+_expect_nothing' => ( default => 1 );
HTTP-Request-FromCurl ( C/CO/CORION/HTTP-Request-FromCurl-0.55.tar.gz, CORION, 2025; MetaCPAN )
HTTP-Request-FromCurl/lib/HTTP/Request/FromCurl.pm ( view source; MetaCPAN )
,
    'header|H=s@',
    'include|i',         # ignored
    'interface=s',
    'insecure|k',
    'json=s@',
    'location|L',        # ignored, we always follow redirects
    'max-filesize=s',
    'ma
 [] };
    my @post_binary_data = @{ $options->{'data-binary'} || [] };
    my @post_json_data = @{ $options->{'json'} || [] };

    my @form_args;
    if( $options->{form}) {
        # support --form
      } @post_binary_data;

        @post_json_data = map {
            $self->_maybe_read_data_file( $build_options{ read_files }, $_ );
        } @post_json_data;

        @post_read_data = map {
  
AWS-S3 ( L/LE/LEEJO/AWS-S3-1.00.tar.gz, LEEJO, 2025; MetaCPAN )
AWS-S3/lib/AWS/S3/Bucket.pm ( view source; MetaCPAN )
cf->create_origin_access_identity( Comment => "Access to s3://" . $s->name, );
    $s->policy( <<"JSON");
{
	"Version":"2008-10-17",
	"Id":"PolicyForCloudFrontPrivateContent",
	"Statement":[{
			"Sid"
d ]}"
			},
			"Action": "s3:GetObject",
			"Resource": "arn:aws:s3:::@{[ $s->name ]}/*"
		}
	]
}
JSON
}    # end enable_cloudfront_distribution()

sub files {
    my ( $s, %args ) = @_;

    return A
ices.com/AmazonS3/latest/API/index.html?RESTBucketPUT.html>

=head2 policy

Read-only.  String of JSON.

Looks something like this:

  {
    "Version":"2008-10-17",
    "Id":"aaaa-bbbb-cccc-dddd",
   
HTTP-Request-FromCurl ( C/CO/CORION/HTTP-Request-FromCurl-0.55.tar.gz, CORION, 2025; MetaCPAN )
HTTP-Request-FromCurl/lib/HTTP/Request/CurlParameters.pm ( view source; MetaCPAN )
 'https://example.com',
);

=item *

C<headers>

    headers => {
        'Content-Type' => 'text/json',
        'X-Secret' => ['value-1', 'value-2'],
    }

The headers of the request. Multiple heade
      }

    } elsif( defined( my $body = $self->body )) {
        # Can we collapse stuff into --json or other nicer representations
        # here ?!
        push @request_commands,
            '--d
App-CSVUtils ( P/PE/PERLANCAR/App-CSVUtils-1.036.tar.gz, PERLANCAR, 2025; MetaCPAN )
App-CSVUtils/lib/App/CSVUtils/csv_sorted_rows.pm ( view source; MetaCPAN )
t whether things are sorted via exit code (or status code in the
enveloped result, if you request JSON or call this utility as a Perl function).

_
            schema => 'bool*',
            cmdline_a
t whether things are sorted via exit code (or status code in the
enveloped result, if you request JSON or call this utility as a Perl function).

=item * B<reverse> => I<bool>

(No description)

=item
YAML-PP ( T/TI/TINITA/YAML-PP-v0.39.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-PP/etc/test-suite-html.pl ( view source; MetaCPAN )
me qw/ basename dirname /;
use HTML::Entities qw/ encode_entities /;
use YAML::PP::Highlight;
use JSON::XS ();
use Encode;

chomp(my $version = qx{git describe --dirty});
my $yaml_test_suite = 'test-s
"#invalid">Invalid (@{[ scalar @invalid ]})</a><br>
EOM

my $ypp = YAML::PP->new(
    boolean => 'JSON::PP',
    schema => [qw/ Core /],
);
my $table;
for my $dir (sort @valid) {
    my $test = highli
></td>
<td>YAML::PP::Highlight</td>
<td>YAML::PP::Loader | Data::Dump</td>
<td>YAML::PP::Loader | JSON::XS</td>
<td>YAML::PP::Loader | YAML::PP::Dumper</td>
<td>YAML::PP::Parser | YAML::PP::Emitter</t
App-CSVUtils ( P/PE/PERLANCAR/App-CSVUtils-1.036.tar.gz, PERLANCAR, 2025; MetaCPAN )
App-CSVUtils/lib/App/CSVUtils/Manual/Cookbook.pod ( view source; MetaCPAN )
(TOTAL, AVERAGE, ETC)

TODO.

=head1 CONVERTING TO OTHER FORMATS

=head2 To CSV

TODO.

=head2 To JSON

TODO.

=head2 To Perl data structure

TODO.

=head2 To TSV

TODO.

=head2 To YAML

TODO.

=head1
 | 2     |
 | name | 1     |
 | rank | 3     |
 +------+-------+

 % csv-list-field-names 1.csv --json
 [
    200,
    "OK",
    [
       {
          "index" : 2,
          "name" : "age"
       },
  
 : [
          "name",
          "index"
       ],
       "title" : "csv-list-field-names 1.csv --json"
    }
 ]

=head1 MERGING CSV FILES

Keywords: concatenating, combining.

See also: L</SPLITTING 
Proch-N50 ( P/PR/PROCH/Proch-N50-1.7.0.tar.gz, PROCH, 2025; MetaCPAN )
Proch-N50/lib/Proch/N50.pm ( view source; MetaCPAN )
 qw(croak);
use File::Spec;
use JSON::PP;
use FASTX::Reader;
use File::Basename;
use Exporter qw(import);

our $VERSION = '1.7.0';
our @EXPORT = qw(getStats getN50 jsonStats);

# Configuration
our $DE
DIGITS = 2;
our $MIN_CUSTOM_N = 0;
our $MAX_CUSTOM_N = 100;
 

sub getStats {
    my ($file, $wantJSON, $customN) = @_;
    
    # Input validation
    croak "Missing input file parameter" unless defi
);
    $stats->{Nx}    = $nx if defined $customN;

    # Generate JSON if requested
    if ($wantJSON) {
        $stats->{json} = JSON::PP->new->pretty->encode($stats);
    }

    return $stats;
}

su
App-CSVUtils ( P/PE/PERLANCAR/App-CSVUtils-1.036.tar.gz, PERLANCAR, 2025; MetaCPAN )
App-CSVUtils/lib/App/CSVUtils/csv2td.pm ( view source; MetaCPAN )
data then use the "td" utility to grab the first 5 rows',
            src => '[[prog]] file.csv --json | td head -n5',
            src_plang => 'bash',
            test => 0,
            'x.doc.show_r

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