Group
Extension

Matches 35358

Qiime2-Artifact ( P/PR/PROCH/Qiime2-Artifact-0.14.0-TRIAL.tar.gz, PROCH, 2025; MetaCPAN )
Qiime2-Artifact/scripts/lib-demo.pl ( view source; MetaCPAN )
RealBin/../lib/";
use Qiime2::Artifact;
use Term::ANSIColor qw(:constants);
use Data::Dumper;
use JSON::PP;
use Data::Structure::Util qw/unbless/;

 $Data::Dumper::Indent = 1;
 $Data::Dumper::Terse = 
ESET '';
}



sub serialize {
  my $json = JSON::PP->new->ascii->pretty->allow_nonref;
  my $obj = shift;
  my $class = ref $obj;
  unbless $obj;
  my $rslt = $json->encode($obj);
  bless $obj, $class
;
  return $rslt;
}


sub deserialize {
  my ($json, $class) = @_;
  my $obj = decode_json($json);
  return bless($obj, $class);
}
Mail-Alias-LocalFile ( R/RB/RBREW/Mail-Alias-LocalFile-0.01.tar.gz, RBREW, 2025; MetaCPAN )
Mail-Alias-LocalFile/samples/convert_yaml_to_jason.pl ( view source; MetaCPAN )
#!/usr/bin/env perl
use strict;
use warnings;
use File::Basename;
use YAML::XS qw(LoadFile);
use JSON::XS;
use feature 'say';

# Check if the input file exists
my $input_file = shift;
die "Error: File
t_file, qr/\.[^.]*/ );
# output file name is same as input filename with json as suffix
my $output_file = $path . $name . '.json'; 

# Load the YAML file into a hash reference
print "Loading YAML from
$@\n";
}

# Create a JSON encoder object with pretty formatting
my $json = JSON::XS->new->pretty->utf8;

# Convert the hash reference to JSON and write to file
print "Writing JSON to $output_file...\n
ICANN-RST ( G/GB/GBROWN/ICANN-RST-0.03.tar.gz, GBROWN, 2025; MetaCPAN )
ICANN-RST/lib/ICANN/RST/Spec.pm ( view source; MetaCPAN )
object representing the RST test specifications.
use Carp;
use Data::Mirror qw(mirror_file mirror_json);
use ICANN::RST::Case;
use ICANN::RST::ChangeLog;
use ICANN::RST::DataProvider;
use ICANN::RST::
se constant SCHEMA_VERSION => q{1.14.0};
use feature qw(say);
use strict;

$YAML::XS::Boolean = q{JSON::PP};

sub url_from_release {
    my ($package, $release) = @_;

    return URI->new(sprintf(q{ht
load/%s/rst-test-specs.yaml}, $release));
}

sub current_version { shift->url_from_release(mirror_json(q{https://api.github.com/repos/icann/rst-test-specs/releases/latest})->{name}) }

sub new_from_ve
Qiime2-Artifact ( P/PR/PROCH/Qiime2-Artifact-0.14.0-TRIAL.tar.gz, PROCH, 2025; MetaCPAN )
Qiime2-Artifact/scripts/lib/YAML/Tiny.pm ( view source; MetaCPAN )
vailable in JSON, with the additional limitation that only simple keys
are supported.

As a result, all possible YAML Tiny documents should be able to be
transformed into an equivalent JSON document, 
PDL ( E/ET/ETJ/PDL-2.100.tar.gz, ETJ, 2025; MetaCPAN )
PDL/lib/PDL/Core.pm ( view source; MetaCPAN )
correct,
but cannot now be changed due to backward compatibility.

=for example

 use JSON;
 my $json = encode_json unpdl $pdl;

=for bad

unpdl converts any bad values into the string 'BAD'.

=cut

=
Apache2-SSI ( J/JD/JDEGUEST/Apache2-SSI-v0.2.12.tar.gz, JDEGUEST, 2025; MetaCPAN )
Apache2-SSI/lib/Apache2/SSI/File/Type.pm ( view source; MetaCPAN )

    use Digest::MD5;
    use File::Basename ();
    use File::Spec ();
    use IO::File;
    use JSON;
    use Scalar::Util ();
    use URI::file;
    our $VERSION = 'v0.1.3';
    # Translation of ty
my $load_json_data = sub
    {
        my $json_file = shift( @_ ) || return;
        my $io = IO::File->new( "<$json_file" ) ||
            return( $self->error( "Unable to open our own json magic fi
>close;
        local $@;
        # try-catch
        my $rv = eval
        {
            my $j = JSON->new->relaxed->allow_nonref;
            $MAGIC_DATA = $self->{magic_data} = $j->decode( $buf );
Benchmark-DKbench ( D/DK/DKECHAG/Benchmark-DKbench-3.00.tar.gz, DKECHAG, 2025; MetaCPAN )
Benchmark-DKbench/lib/Benchmark/DKbench/Setup.pm ( view source; MetaCPAN )
L-Inserter-0.04.tar.gz
M/MI/MIK/CryptX-0.085.tar.gz
M/MI/MIK/Crypt-JWT-0.036.tar.gz
M/ML/MLEHMANN/JSON-XS-4.03.tar.gz
L/LE/LETO/Math-MatrixReal-2.13.tar.gz
R/RI/RIBASUSHI/SQL-Abstract-Classic-1.91.tar
Circle-Wallet ( C/CH/CHENGYU/circle-chain/Circle-Wallet-0.05.tar.gz, CHENGYU, 2025; MetaCPAN )
Circle-Wallet/lib/Circle/Wallet.pm ( view source; MetaCPAN )
rt';
use Carp;
use Time::HiRes    qw(gettimeofday);
use Circle::Common qw(load_config http_json_post http_json_get);

our @EXPORT = qw(
  create_wallet
  list_wallet
  balance_of_address
  balance_of_
n the cloud.

=cut

sub create_wallet {
    my $url = _build_create_wallet_url();
    return http_json_post( $url, {} );
}

sub _build_create_wallet_url {
    my $config      = load_config();
    my $
 list here.
   }

=cut

sub list_wallet {
    my $url = _build_list_wallet_url();
    return http_json_get($url);
}

sub _build_list_wallet_url {
    my $config      = load_config();
    my $wallet_pa
WebService-HashiCorp-Vault ( D/DJ/DJZORT/WebService-HashiCorp-Vault-0.04.tar.gz, DJZORT, 2025; MetaCPAN )
WebService-HashiCorp-Vault/lib/WebService/HashiCorp/Vault/Secret/Generic.pm ( view source; MetaCPAN )
         if $resp->{lease_id};
        $self->{renewable} = 0 + $resp->{renewable} # convert from JSON::Boolean
            if $resp->{renewable};
    }
}


sub _clear_self {
    my $self = shift;
   
Apache2-SSI ( J/JD/JDEGUEST/Apache2-SSI-v0.2.12.tar.gz, JDEGUEST, 2025; MetaCPAN )
Apache2-SSI/lib/Apache2/SSI/SharedMem.pod ( view source; MetaCPAN )
  }

The content is stored in shared memory as L<JSON> encoded, but since it is shared, L<read> do some minimal check to see if the data looks like JSON data. It it does not, the data is returned as-i
vided to the shared memory.

When doing so, this will encode the data as L<JSON> text data. It supports data supported by JSON, so basically string, hash reference and array reference.

It returns the
ining, or under if there was an error, which can then be retrieved with L<Module::Generic/error>

JSON data are more portable across network and is a widely used technology.

=head1 AUTHOR

Jacques De
Benchmark-DKbench ( D/DK/DKECHAG/Benchmark-DKbench-3.00.tar.gz, DKECHAG, 2025; MetaCPAN )
Benchmark-DKbench/lib/Benchmark/DKbench.pm ( view source; MetaCPAN )
matText;
use HTML::TreeBuilder;
use Imager;
use Imager::Filter::Mandelbrot;
use Image::PHash;
use JSON::XS;
use Math::DCT ':all';
use Math::MatrixReal;
use MCE::Loop;
use SQL::Abstract::Classic;
use S
 Inlines CSS on 2 sample wiki pages using L<CSS::Inliner>.

=item * C<Crypt::JWT> : Creates large JSON Web Tokens with RSA and EC crypto keys
using L<Crypt::JWT>.

=item * C<DateTime> : Creates and ma
g filters like gaussian, unsharp mask, mandelbrot.

=item * C<JSON::XS> : Encodes/decodes random data structures to/from JSON using
L<JSON::XS>.

=item * C<Math::DCT> : Does 8x8, 18x18 and 32x32 DCT t
WebService-Slack-WebApi ( M/MI/MIHYAERU/WebService-Slack-WebApi-0.19.tar.gz, MIHYAERU, 2025; MetaCPAN )
WebService-Slack-WebApi/lib/WebService/Slack/WebApi/Chat.pm ( view source; MetaCPAN )
se warnings;
use utf8;
use feature qw/state/;

use parent 'WebService::Slack::WebApi::Base';

use JSON;
use WebService::Slack::WebApi::Generator (
    delete => {
        channel => 'Str',
        ts 
wExtra');
    my ($self, $args, %extra) = $rule->validate(@_);

    $args->{attachments} = encode_json $args->{attachments} if exists $args->{attachments};
    return $self->request('postEphemeral', {
wExtra');
    my ($self, $args, %extra) = $rule->validate(@_);

    $args->{attachments} = encode_json $args->{attachments} if exists $args->{attachments};
    return $self->request('postMessage', {%$
WebService-IdoitAPI ( M/MA/MAMAWE/WebService-IdoitAPI-0.4.6.tar.gz, MAMAWE, 2025; MetaCPAN )
WebService-IdoitAPI/lib/WebService/IdoitAPI/Object.pm ( view source; MetaCPAN )
ft out
and the attributes in the other categories are changed
to values that can be used with the JSON-RPC-API call C<cmdb.category.save>.

One use case for this function
is to amend an object with da
Webservice-KeyVal-API ( O/OO/OODLER/Webservice-KeyVal-API-0.9.10.tar.gz, OODLER, 2025; MetaCPAN )
Webservice-KeyVal-API/lib/Webservice/KeyVal/API.pm ( view source; MetaCPAN )
rict;
use URI::Escape qw/uri_escape/;

our $VERSION = '0.9.10';

use HTTP::Tiny;
use JSON            qw/decode_json/;
use Util::H2O::More qw/baptise ddd HTTPTiny2h2o h2o/;

use constant {
    BASEURL 
odule is the first one written using L<Util::H2O::More>'s C<HTTPTiny2h2o>
method that looks for C<JSON> in the C<content> key returned via L<HTTP::Tiny>'s
response C<HASH>.

=head1 METHODS

=over 4

=
e, the webservice always returns an HTTP status of C<200 OK>, the C<status>
field of the returned JSON must be checked to determine if the was a failure. This
module checks for anything other than C<s
WebService-IdoitAPI ( M/MA/MAMAWE/WebService-IdoitAPI-0.4.6.tar.gz, MAMAWE, 2025; MetaCPAN )
WebService-IdoitAPI/lib/WebService/IdoitAPI.pm ( view source; MetaCPAN )
=4 et si ai:
#
package WebService::IdoitAPI;

use 5.006;
use strict;
use warnings;

use Carp;
use JSON::RPC::Legacy::Client;

our $VERSION = '0.4.6'; # VERSION

my @CONFIG_VARS = qw(apikey password ur
ent}) {
            $client = $self->{client};
        }
        else {
            $client = new JSON::RPC::Legacy::Client;
            $self->{client} = $client;
            if ($self->{session_id})
                   die "Connection problem: $status_line";
                }
                die "JSON RPC client failed: $@";
            }
            $ret;
        };
        return $res;
    }
   
Onyphe ( G/GO/GOMOR/Onyphe-v4.19.0.tar.gz, GOMOR, 2025; MetaCPAN )
Onyphe/lib/OPP/Proc/Exec.pm ( view source; MetaCPAN )
elf->unflatten($input) or return;
   my $json = $self->to_json($unflatten->[0]);
   $json =~ s{(?<!\\)'}{\\'}g;

   my $new = {};
   $new->{data} = `echo '$json' | $command`;
   $self->output->add($ne
Webservice-Sendy-API ( O/OO/OODLER/Webservice-Sendy-API-0.8.tar.gz, OODLER, 2025; MetaCPAN )
Webservice-Sendy-API/lib/Webservice/Sendy/API.pm ( view source; MetaCPAN )
package Webservice::Sendy::API;

use v5.10;
use strict;

use HTTP::Tiny;
use JSON            qw/decode_json/;
use Util::H2O::More qw/baptise ddd HTTPTiny2h2o h2o ini2h2o o2d/;

our $VERSION = '0.8';

XS-libpanda ( S/SY/SYBER/XS-libpanda-1.5.11.tar.gz, SYBER, 2025; MetaCPAN )
XS-libpanda/clib/src/panda/log/log.h ( view source; MetaCPAN )
ct escaped { string_view src; };

struct prettify_json {
    string_view src;
    std::string str;
    size_t unfold_limit;

    explicit prettify_json (const string_view& sv, size_t unfold_limit = 1)
, string>::value && !std::is_same<std::decay_t<T>, string_view>::value, T>>
    explicit prettify_json (T&& v, size_t unfold_limit = 1) : unfold_limit(unfold_limit) {
        auto& os = details::get_o
from_os(std::ostream&);
};

std::ostream& operator<< (std::ostream&, const escaped&);
std::ostream& operator<< (std::ostream&, const prettify_json&);

}}

extern panda::log::Module panda_log_module;

Koha-Contrib-Tamil ( F/FR/FREDERICD/Koha-Contrib-Tamil-0.074.tar.gz, FREDERICD, 2025; MetaCPAN )
Koha-Contrib-Tamil/lib/Koha/Contrib/Tamil/Biblio/Dumper.pm ( view source; MetaCPAN )
e. Default value is C<marcxml>.
Available values are: C<iso2709>, C<marcxml>, C<text>, C<json>, C<yaml>,
C<json>.

=head2 decode

Decode encoded values

=head2 verbose

Verbosity. By default 0 (false)
Mojolicious-Plugin-OpenAPI ( J/JH/JHTHORSEN/Mojolicious-Plugin-OpenAPI-5.11.tar.gz, JHTHORSEN, 2025; MetaCPAN )
Mojolicious-Plugin-OpenAPI/lib/Mojolicious/Plugin/OpenAPI/Guides/OpenAPIv2.pod ( view source; MetaCPAN )
pecification>
and generate routes and input/output rules from it. See L<JSON::Validator> for
L<supported schema file formats|JSON::Validator/Supported schema formats>.

  {
    "swagger": "2.0",
    "
 from the keys
under C</pets>.

The different parts of the specification can also be retrieved as JSON using
the "OPTIONS" HTTP method. Example:

  OPTIONS /api/pets
  OPTIONS /api/pets?method=get

No
h

The C<basePath> will also be used to add a route that renders back the
specification either as JSON or HTML. Examples:

=over 2

=item * http://example.com/api.html

Retrieve the expanded version o

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