Group
Extension

Matches 35358

MOP4Import-Declare ( H/HK/HKOBA/MOP4Import-Declare-0.071.tar.gz, HKOBA, 2025; MetaCPAN )
MOP4Import-Declare/Declare.pm ( view source; MetaCPAN )
);
  my $fields_array = fields_array($opts->{objpkg});

  my $isFirst = not $myPack->JSON_TYPE_HANDLER->lookup_json_type($opts->{objpkg});

  # Import all fields from super class
  foreach my $super_c
gin->clone : $origin;
      };
      push @$fields_array, $name;
    }

    $myPack->JSON_TYPE_HANDLER->inherit_json_type($opts->{objpkg}, $super_class) if $isFirst;

  }

  {
    my %dup;
    foreach
c;
    }
  };

  print STDERR "  FieldSpec is: $field_class\n" if DEBUG;

  $myPack->JSON_TYPE_HANDLER->declare_json_type_record($opts->{objpkg});

  $myPack->declare___field($opts, $field_class, ref 
Test-Simple ( E/EX/EXODIST/Test-Simple-1.302216.tar.gz, EXODIST, 2025; MetaCPAN )
Test-Simple/lib/Test2/IPC/Driver/Files.pm ( view source; MetaCPAN )
e JSON::PP;
        local *UNIVERSAL::TO_JSON = sub { +{ %{$_[0]} } };
        my $json = JSON::PP->new->ascii->pretty->canonical->allow_unknown->allow_blessed->convert_blessed;
        $data = $json-
Aion ( D/DA/DART/Aion-1.2.tar.gz, DART, 2025; MetaCPAN )
Aion/lib/Aion/Types.pm ( view source; MetaCPAN )
olLike

Tests for 1, 0, "", undef, or an object with an overloaded C<bool> or C<0+> operator as C<JSON::PP::Boolean>. In the second case, it calls the C<0+> operator and checks the result as C<Bool>.
MOP4Import-Declare ( H/HK/HKOBA/MOP4Import-Declare-0.071.tar.gz, HKOBA, 2025; MetaCPAN )
MOP4Import-Declare/FieldSpec.pm ( view source; MetaCPAN )
 fields
  ('name'
   , 'doc' # documentation
   , 'default'
   , 'no_getter'
   , 'package'
   , 'json_type'
   , 'isa'
   , 'validator'
   , 'zsh_completer'
   , 'extra'
   # file? line? package?
 );
Gherkin ( C/CU/CUKEBOT/Gherkin-37.0.0.tar.gz, CUKEBOT, 2025; MetaCPAN )
Gherkin/lib/Gherkin.pm ( view source; MetaCPAN )
umes and produces protobuf messages
(See L<https://github.com/cucumber/messages>). Messages
use ndjson formatting.

The start of the pipeline is the Gherkin language parser. C<Gherkin>
implements that
e> message sent to
the sink is wrapped in an envelope which has a C<to_json> method to create
UTF-8 encoded L<NDJSON|http://ndjson.org/> output.

C<$id_gen> and C<$sink> are as documented in C<from_pa
Cucumber-Messages ( C/CU/CUKEBOT/Cucumber-Messages-31.0.0.tar.gz, CUKEBOT, 2025; MetaCPAN )
Cucumber-Messages/lib/Cucumber/Messages/Message.pm ( view source; MetaCPAN )
s::Message';

  has 'prop1';
  has 'prop2';


=head1 DESCRIPTION



=cut

use Carp qw(croak);
use JSON::MaybeXS;

use Scalar::Util qw( blessed );

use Moo;
# 'use Moo' implies 'use strict; use warning
ncy tree for the Cucumber::Messages
# library, I decided to go for Moo instead of Moose.


my $json = JSON::MaybeXS->new(
    utf8 => 0, pretty => 0, indent => 0, canonical => 1
    );

sub _camelize 
 ? JSON::MaybeXS->true : JSON::MaybeXS->false;
        }
    }
}


sub _from_hash {
    my ($value, %args) = @_;

    if (my $ref = ref $value) {
        return $value ? 1 : ''
            if $json->i
Gherkin ( C/CU/CUKEBOT/Gherkin-37.0.0.tar.gz, CUKEBOT, 2025; MetaCPAN )
Gherkin/lib/Gherkin/Dialect.pm ( view source; MetaCPAN )
ven
        if ( my $filename = $options->{'dictionary_location'} ) {
            require Cpanel::JSON::XS;
            open( my $fh, '<', $filename ) || die "Can't open [$filename]";
            my $
, (<$fh>);
            close $fh;
            $options->{'dictionary'} = Cpanel::JSON::XS::decode_json($input);
        } else {
            ## no critic (ProhibitPackageVars)
            require Gher
rd).

Mutually exclusive with C<dictionary_location>.

=item * dictionary_location

Pathname to a JSON file which deserializes into the structure mentioned
for the C<dictionary> option.

Mutually excl
Gherkin ( C/CU/CUKEBOT/Gherkin-37.0.0.tar.gz, CUKEBOT, 2025; MetaCPAN )
Gherkin/lib/App/gherkin.pm ( view source; MetaCPAN )
[ qw/out_handle include_source include_ast
    include_pickles predictable_ids /, ];

use Cpanel::JSON::XS;
use Data::UUID;
use Getopt::Long qw(GetOptionsFromArray :config bundling);
use Pod::Usage;

y $fh   = $self->out_handle;
    return sub {
        my $msg = shift;
        print $fh $msg->to_json . "\n";
    };
}

sub run {
    my ( $self, @file_list ) = @_;

    Gherkin->from_paths(\@file_li
MOP4Import-Declare ( H/HK/HKOBA/MOP4Import-Declare-0.071.tar.gz, HKOBA, 2025; MetaCPAN )
MOP4Import-Declare/intro_runnable_module.pod ( view source; MetaCPAN )
in C<undef>, C<[..]>, C<{..}>...
we must use some kind of serializer such as L<Data::Dumper> or L<JSON>.
Following is a minimum starting point of such subcommand dispatcher:


    use Data::Dumper;
  
is falsy.

=item *
Change output serializer to L<JSON>.

=item *
Change argument parser to convert C<[..]>, C<{...}> automatically
by L<JSON/decode_json> too.
This enables you to compose your favorite
h takes/returns structured objects/arrays.

=back

This is a backstory of L<MOP4Import::Base::CLI_JSON>. Thank you for reading!

=head1 APPENDIX

=head2 Sample implementation of parse_opts()


    sub
MOP4Import-Declare ( H/HK/HKOBA/MOP4Import-Declare-0.071.tar.gz, HKOBA, 2025; MetaCPAN )
MOP4Import-Declare/Opts.pm ( view source; MetaCPAN )
end of MOP4Import handling.
   , 'delayed_tasks'

   # default value for json_type. 'string' if not specified
   , 'default_json_type'

   # Cache to store and keep heavy computation results between p
mojo-util-collection ( C/CR/CRLCU/mojo-util-collection-v0.0.17.tar.gz, CRLCU, 2025; MetaCPAN )
mojo-util-collection/lib/Mojo/Util/Collection/Formatter.pm ( view source; MetaCPAN )
o::Util::Collection::Formatter;
use Mojo::Base -base;

our $VERSION = '0.0.17';

use Mojo::JSON qw(encode_json);

=head2 asOptions

Return an array ref containing [{ value => $value, label => $label }
$header) if ($header);

    return join("\n", @array);
}

=head2 toJson

Convert collection to JSON string

=cut

sub toJson {
    my $self = shift;

    return encode_json($self->toArray(@_));
}

1;
SPVM ( K/KI/KIMOTO/SPVM-0.990107.tar.gz, KIMOTO, 2025; MetaCPAN )
SPVM/lib/SPVM/Document/Modules.pm ( view source; MetaCPAN )
tem * L<SPVM::HTTP::Tiny>

=item * L<SPVM::IO>

=item * L<SPVM::IO::Socket::SSL>

=item * L<SPVM::JSON>

=item * L<SPVM::Math>

=item * L<SPVM::MIME::Base64>

=item * L<SPVM::Mojolicious>

=item * L<S
SPVM ( K/KI/KIMOTO/SPVM-0.990107.tar.gz, KIMOTO, 2025; MetaCPAN )
SPVM/lib/SPVM/Dist.pm ( view source; MetaCPAN )
lf) = @_;
  
  my $gitignore_content = <<'EOS';
/blib
/Makefile
/Makefile.old
/MYMETA.yml
/MYMETA.json
/pm_to_blib
/core.*
/core
/SPVM-*
*.bak
*.BAK
*.tmp
*.o
*.bs
.tmp
.git
.spvm_build
EOS
  
  # Gen

  my $manifest_skip_content = <<'EOS';
^blib(/|$)
^Makefile$
^Makefile.old$
^MYMETA.yml$
^MYMETA.json$
^pm_to_blib$
^core\.
^core$
^SPVM-
\.bak$
\.BAK$
\.tmp$
\.o$
\.bs$
(^|/)\.tmp(/|$)
(^|/)\.git(/|
SPVM ( K/KI/KIMOTO/SPVM-0.990107.tar.gz, KIMOTO, 2025; MetaCPAN )
SPVM/lib/SPVM/Builder/Exe.pm ( view source; MetaCPAN )
package SPVM::Builder::Exe;

use strict;
use warnings;
use Carp ();
use JSON::PP;
use File::Basename 'basename', 'dirname', 'fileparse';
use File::Path 'mkpath', 'rmtree';
use File::Find 'find';
use A
iles = $tar->list_files;
    
    my $spvmcc_json_archive;
    for my $tar_file (@tar_files) {
      if ($tar_file eq 'spvmcc.json') {
        $spvmcc_json_archive = $tar->get_content($tar_file);
    
unless ($spvmcc_json_archive) {
      Carp::confess "SVPM archive '$spvm_archive' must contain spvmcc.json";
    }
    
    my $spvmcc_info_archive = JSON::PP->new->decode($spvmcc_json_archive);
    
Geo-IPinfo ( I/IP/IPINFO/Geo-IPinfo-3.2.0.tar.gz, IPINFO, 2025; MetaCPAN )
Geo-IPinfo/lib/Geo/IPinfo.pm ( view source; MetaCPAN )


use 5.006;
use strict;
use warnings;
use Cache::LRU;
use LWP::UserAgent;
use HTTP::Headers;
use JSON;
use Geo::Details;
use Net::CIDR;
use Net::CIDR::Set;

our $VERSION = '3.2.0';
use constant DEFAU
elf->{ua}->default_headers(
        HTTP::Headers->new(
            Accept        => 'application/json',
            Authorization => 'Bearer ' . $token
        )
    );
    $self->{ua}->agent("IPinfo
_type =~ m{application/json}i ) {
            eval { $info = from_json( $response->decoded_content ); };
            if ($@) {
                return ( undef, 'Error parsing JSON response.' );
       
CGI-Lingua ( N/NH/NHORNE/CGI-Lingua-0.79.tar.gz, NHORNE, 2025; MetaCPAN )
CGI-Lingua/lib/CGI/Lingua.pm ( view source; MetaCPAN )
eval { require LWP::Simple::WithCache; require JSON::Parse } )) {
		$self->_debug("Look up $ip on geoplugin");

		LWP::Simple::WithCache->import();
		JSON::Parse->import();

		if(my $data = LWP::Simpl
e::WithCache::get("http://www.geoplugin.net/json.gp?ip=$ip")) {
			$self->{_country} = JSON::Parse::parse_json($data)->{'geoplugin_countryCode'};
		}
	}
	unless($self->{_country}) {
		$self->_debug("L
l { require LWP::Simple::WithCache; require JSON::Parse } ) {
				$self->_debug("Look up $ip on ip-api.com");

				LWP::Simple::WithCache->import();
				JSON::Parse->import();

				if(my $data = LWP::
Geo-IPinfo ( I/IP/IPINFO/Geo-IPinfo-3.2.0.tar.gz, IPINFO, 2025; MetaCPAN )
Geo-IPinfo/lib/Geo/Details.pm ( view source; MetaCPAN )
;
    bless $self, $class;
    return $self;
}

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

    # Return a copy of the object as a hash reference for JSON encoding
    return {%$self};
}

sub abuse {
    retu
lain string. It defaults to an empty string if not provided.

=head2 TO_JSON

This method is used to convert the object to a JSON representation.

=head2 abuse

    my $abuse_email = $geo_details->abu
MOP4Import-Declare ( H/HK/HKOBA/MOP4Import-Declare-0.071.tar.gz, HKOBA, 2025; MetaCPAN )
MOP4Import-Declare/Base/CLI.pod ( view source; MetaCPAN )
i_run(\@ARGV) unless caller;
  1;


=head1 DESCRIPTION

Now superceded by L<MOP4Import::Base::CLI_JSON>.

MOP4Import::Base::CLI is a general purpose base class to make
L<your module also runnable from
MOP4Import-Declare ( H/HK/HKOBA/MOP4Import-Declare-0.071.tar.gz, HKOBA, 2025; MetaCPAN )
MOP4Import-Declare/Util.pm ( view source; MetaCPAN )
esult : $result;
}

#
# posix_style long option with JSON support.
#
sub parse_json_opts {
  my ($pack, $list, $result, $alias) = @_;
  require JSON::MaybeXS;
  parse_opts($pack, $list, $result, $alia
d.
      my $copy = $_[0];
      Encode::_utf8_off($copy) if Encode::is_utf8($copy);
      JSON::MaybeXS::JSON()->new->utf8->relaxed->decode($copy);
    } elsif (not Encode::is_utf8($_[0]) and $_[0] =
MOP4Import-Declare ( H/HK/HKOBA/MOP4Import-Declare-0.071.tar.gz, HKOBA, 2025; MetaCPAN )
MOP4Import-Declare/Util/Inspector.pm ( view source; MetaCPAN )
t STDERR "Using (file '" . __FILE__ . "')\n" if DEBUG and DEBUG >= 2
}

use MOP4Import::Base::CLI_JSON -as_base
  , [fields =>
     [lib =>
      doc => "library directory list. SCALAR, ARRAY or ':' s

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