Group
Extension

Matches 35358

Venus ( A/AW/AWNCORP/Venus-4.15.tar.gz, AWNCORP, 2023; MetaCPAN )
Venus/lib/Venus/Run.pm ( view source; MetaCPAN )
$base = $FILE =~ s/\.\w+$//r;

  return $ENV{VENUS_FILE} || (grep -f, map "$base.$_", qw(yaml yml json js perl pl))[0]
}

state $footer = <<"EOF";
Config:

Here is an example configuration in YAML (e.
N

auto Venus::Run sub {
  my ($self) = @_;

  my $tryer = $self->tryer;

  $tryer->catch('Venus::Json::Error', sub {
    $self->log_error($_->render);
  });

  $tryer->catch('Venus::Path::Error', sub
 conf example 5

  # given: synopsis

  package main;

  # e.g. current directory has only a .vns.json file

  my $conf = $run->conf;

  # {...}

=back

=over 4

=item conf example 6

  # given: synop
WebService-Kramerius-API4 ( S/SK/SKIM/WebService-Kramerius-API4-0.02.tar.gz, SKIM, 2023; MetaCPAN )
WebService-Kramerius-API4/API4/Info.pm ( view source; MetaCPAN )
 $info = $obj->info($lang);

Get info about Kramerius system.

TODO C<$lang>

Returns string with JSON.

=head1 ERRORS

 new():
         Parameter 'library_url' is required.
         From Class::Utils
rius::API4::Info->new(
         'library_url' => $library_url,
 );

 my $info_json = $obj->info($lang);

 print $info_json."\n";

 # Output for 'http://kramerius.mzk.cz/' and 'cs', pretty print.
 # {
Bencher-Scenarios-Log-ger ( P/PE/PERLANCAR/Bencher-Scenarios-Log-ger-0.019.tar.gz, PERLANCAR, 2023; MetaCPAN )
Bencher-Scenarios-Log-ger/lib/Bencher/Scenario/Log/ger/LayoutStartup.pm ( view source; MetaCPAN )
.019'; # VERSION

our %layout_modules = (
    Pattern => {format=>'[%d] %m'},
    LTSV => {},
    JSON => {},
    YAML => {},
);

our $scenario = {
    modules => {
    },
    participants => [
      
JSON> 0.002

L<Log::ger::Layout::LTSV> 0.006

L<Log::ger::Layout::Pattern> 0.008

L<Log::ger::Layout::YAML> 0.001

=head1 BENCHMARK PARTICIPANTS

=over

=item * baseline (command)



=item * load-JSON
 (command)

L<Log::ger::Layout::JSON>



=item * load-LTSV (command)

L<Log::ger::Layout::LTSV>



=item * load-Pattern (command)

L<Log::ger::Layout::Pattern>



=item * load-YAML (command)

L<Log::g
App-AutoCRUD ( D/DA/DAMI/App-AutoCRUD-0.15.tar.gz, DAMI, 2023; MetaCPAN )
App-AutoCRUD/lib/App/AutoCRUD.pm ( view source; MetaCPAN )
thout investing into a full-fledged custom application.

=item *

Data export in Excel, YAML, JSON, XML formats

=item *

Extensibility through inheritance

=back


This application is al
 presentation view

=item xlsx

Export to Excel

=item yaml

L<YAML> format

=item json

L<JSON> format

=item xml

C<XML> format

=back

=item *

Flag for total page count (this
Catmandu-Importer-OpenAIRE ( H/HO/HOCHSTEN/Catmandu-Importer-OpenAIRE-0.02.tar.gz, HOCHSTEN, 2023; MetaCPAN )
Catmandu-Importer-OpenAIRE/lib/Catmandu/Importer/OpenAIRE.pm ( view source; MetaCPAN )
AIRE;

use LWP::Simple;
use Catmandu::Sane;
use Catmandu::Util qw(:is);
use Any::URI::Escape;
use JSON;
use Moo;
use feature 'state';

our $VERSION = '0.02';

our @BASE_PARAM = qw(size sortBy hasECFun
rds);
    };
}

sub fetchRecords {
    my ($self,$page) = @_;

    my @params = (
        "format=json",
        "page=$page"
    );

    for my $param (@BASE_PARAM) {
        if (defined $self->{$par
$self->url , join("&",@params);

    my $result;

    eval {
        my $json = get($url);
        my $data = decode_json($json);

        if ($data && 
                $data->{response} && 
         
WebService-Kramerius-API4 ( S/SK/SKIM/WebService-Kramerius-API4-0.02.tar.gz, SKIM, 2023; MetaCPAN )
WebService-Kramerius-API4/API4/Rights.pm ( view source; MetaCPAN )
ts_hr> could contain keys:

=over

=item * C<actions>

=item * C<pid>

=back

Returns string with JSON.

=head1 ERRORS

 new():
         Parameter 'library_url' is required.
         From Class::Utils
us::API4::Rights->new(
         'library_url' => $library_url,
 );

 my $rights_json = $obj->rights;

 print $rights_json."\n";

 # Output for 'http://kramerius.mzk.cz/', pretty print.
 # {
 #   "repl
Perinci-Tx-Manager ( P/PE/PERLANCAR/Perinci-Tx-Manager-0.580.tar.gz, PERLANCAR, 2023; MetaCPAN )
Perinci-Tx-Manager/lib/Perinci/Tx/Manager.pm ( view source; MetaCPAN )
t;
use warnings;
use Log::ger;

use DBI;
use File::Flock::Retry;
use File::Remove qw(remove);
use JSON::MaybeXS;
use Perinci::Sub::Util qw(err);
use Scalar::Util qw(blessed);
use Package::MoreUtil qw(
::Manager;

my $proto_v = 2;

our $ep = ""; # error prefix
our $lp = "[tm]"; # log prefix

my $json = JSON::MaybeXS->new->allow_nonref;

# this is used for testing purposes only (e.g. to simulate cras
 does not declare idempotent feature"];
    [200];
}

# check actions. actions should be [[f,args,JSON(args),cid?,\&code?,$meta?],
# ...]. this function will check whether function name is valid, whet
File-Process ( B/BI/BIGFOOT/File-Process-0.12.tar.gz, BIGFOOT, 2023; MetaCPAN )
File-Process/lib/File/Process.pm ( view source; MetaCPAN )
##########
  require IO::Scalar;
  require Data::Dumper;
  require JSON::PP;
  require Text::CSV_XS;

  JSON::PP->import('decode_json');

  Data::Dumper->import('Dumper');

  # +------------------+
  
--------+
  # | READ A JSON FILE |
  # +------------------+

  my $json_text = <<'END_OF_TEXT';
{
  "foo" : "bar",
  "baz" : "buz"
}

END_OF_TEXT

  $fh = IO::Scalar->new( \$json_text );

  print Dump
      post(@_);
        return decode_json( join $EMPTY, @{ $_[1] } );
      }
    )
  );

  $fh = IO::Scalar->new( \$json_text );

  print Dumper(
    decode_json( process_file( $fh, merge_lines => 1
Venus ( A/AW/AWNCORP/Venus-4.15.tar.gz, AWNCORP, 2023; MetaCPAN )
Venus/lib/Venus/Yaml.pm ( view source; MetaCPAN )
     local $YAML::XS::Boolean = 'JSON::PP';
      YAML::XS::Load($text);
    });
    $self->encoder(sub {
      my ($data) = @_;
      local $YAML::XS::Boolean = 'JSON::PP';
      YAML::XS::Dump($data
= @_;
      YAML::PP->new(boolean => 'JSON::PP')->load_string($text);
    });
    $self->encoder(sub {
      my ($data) = @_;
      YAML::PP->new(boolean => 'JSON::PP')->dump_string($data);
    });
  
= @_;
      YAML::PP->new(boolean => 'JSON::PP')->load_string($text);
    });
    $self->encoder(sub {
      my ($data) = @_;
      YAML::PP->new(boolean => 'JSON::PP')->dump_string($data);
    });
  
WebService-Kramerius-API4 ( S/SK/SKIM/WebService-Kramerius-API4-0.02.tar.gz, SKIM, 2023; MetaCPAN )
WebService-Kramerius-API4/API4/Item.pm ( view source; MetaCPAN )
;
 my $item_json = $obj->get_item($item_id)
 my $item_children_json = $obj->get_item_children($item_id);
 my $item_siblings_json = $obj->get_item_siblings($item_id);
 my $item_streams_json = $obj->get
blank hash array.

=back

=head2 C<get_item>

 my $item_json = $obj->get_item($item_id)

Get item JSON structure.

Returns JSON string when JSON output dispatch doesn't set.
Otherwise returns value fr
head2 C<get_item_children>

 my $item_children_json = $obj->get_item_children($item_id);

Get item children JSON structure.

Returns JSON string when JSON output dispatch doesn't set.
Otherwise return
JSONLD ( G/GW/GWILLIAMS/JSONLD-0.006.tar.gz, GWILLIAMS, 2023; MetaCPAN )
JSONLD/lib/JSONLD.pm ( view source; MetaCPAN )

JSONLD - A toolkit for transforming JSON-LD data.

=head1 VERSION

This document describes JSONLD version 0.006.

=head1 SYNOPSIS

  use v5.14;
  use JSON;
  use JSONLD;
  
  my $infile = 'test.jsonl
y $data = JSON->new()->boolean_values(0, 1)->decode($content);
  
  my $jld = JSONLD->new();
  my $expanded	= $jld->expand($data);

=head1 DESCRIPTION

This module implements part of the JSON-LD 1.1 s
pulating JSON
data as linked data.

This version provides full support for the JSON-LD 1.1 "Expansion" and
"toRdf" transformations (the latter primarily being useful through a subclass
of JSON-LD, suc
WebService-Browshot ( J/JS/JSOBRIER/WebService-Browshot-1.29.0.tar.gz, JSOBRIER, 2023; MetaCPAN )
WebService-Browshot/lib/WebService/Browshot.pm ( view source; MetaCPAN )
package WebService::Browshot;

use 5.006006;
use strict;
use warnings;

use LWP::UserAgent;
use JSON;
use URI::Encode qw(uri_encode);
use File::Basename;
use File::Path qw(make_path);

$ENV{PERL_LWP_S
, %args) 	= @_;

	my $content = $self->return_string(%args);

	my $info;
	eval {
		$info = decode_json($content);
	};
	if ($@) {
		$self->error("Invalid server response: " . $@);
		return $self->gener
gs) 	= @_;

	my $content = $self->return_post_string(%args);

	my $info;
	eval {
		$info = decode_json($content);
	};
	if ($@) {
		$self->error("Invalid server response: " . $@);
		return $self->gener
Travel-Routing-DE-VRR ( D/DE/DERF/Travel-Routing-DE-VRR-2.24.tar.gz, DERF, 2023; MetaCPAN )
Travel-Routing-DE-VRR/lib/Travel/Routing/DE/EFA/Route/Message.pm ( view source; MetaCPAN )
s_detailed} = 1;
	}
	else {
		$ref->{is_detailed} = 0;
	}

	return bless( $ref, $obj );
}

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

	return { %{$self} };
}

1;

__END__

=head1 NAME

Travel::Routing::DE::EFA:
AnyEvent-KVStore-Etcd ( E/EI/EINHVERFR/AnyEvent-KVStore-Etcd-0.1.0.tar.gz, EINHVERFR, 2023; MetaCPAN )
AnyEvent-KVStore-Etcd/lib/AnyEvent/KVStore/Etcd.pm ( view source; MetaCPAN )
use strict;
use warnings;
use Net::Etcd;
use Types::Standard qw(Str Int Bool);
use Moo;
use JSON 'decode_json';
use MIME::Base64 'decode_base64';
with 'AnyEvent::KVStore::Driver';

=head1 NAME

AnyEve
 and returns a JSON document payload.

=cut

sub read($$) {
    my ($self, $key) = @_;
    my $value =  $self->cnx->range({key => $key })->{response}->{content};
    $value = decode_json($value)->{kvs
_;
    my $value =  $self->cnx->range({key => $key })->{response}->{content};
    $value = decode_json($value)->{kvs}->[0]->{value};
    return defined $value;;
}

=head2 list($pfx)

Returns a list of
Venus ( A/AW/AWNCORP/Venus-4.15.tar.gz, AWNCORP, 2023; MetaCPAN )
Venus/lib/Venus.pm ( view source; MetaCPAN )
=> 1,
    hash => 1,
    hashref => 1,
    is_bool => 1,
    is_false => 1,
    is_true => 1,
    json => 1,
    list => 1,
    load => 1,
    log => 1,
    make => 1,
    match => 1,
    merge => 1,
>is_true;
}

sub json (;$$) {
  my ($code, $data) = @_;

  require Venus::Json;

  if (!$code) {
    return Venus::Json->new;
  }

  if (lc($code) eq 'decode') {
    return Venus::Json->new->decode($d
ata);
  }

  if (lc($code) eq 'encode') {
    return Venus::Json->new(value => $data)->encode;
  }

  return fault(qq(Invalid "json" action "$code"));
}

sub list (@) {
  my (@args) = @_;

  return ma
Task-Error-Pure ( S/SK/SKIM/Task-Error-Pure-0.04.tar.gz, SKIM, 2023; MetaCPAN )
Task-Error-Pure/Pure.pm ( view source; MetaCPAN )
ver HTTP.

=item L<Error::Pure::HTTP::JSON>

Error::Pure module for JSON output over HTTP.

=item L<Error::Pure::HTTP::JSON::Advance>

Error::Pure module for JSON output with additional parameters ove
 error print over HTTP.

=item L<Error::Pure::JSON>

Error::Pure module for JSON output.

=item L<Error::Pure::JSON::Advance>

Error::Pure module for JSON output with additional parameters.

=item L<E
t::ANSIColor>

ANSIColor Output subroutines for Error::Pure.

=item L<Error::Pure::Output::JSON>

Output JSON subroutines for Error::Pure.

=item L<Error::Pure::Output::Text>

Output subroutines for E
Regexp-Debugger ( D/DC/DCONWAY/Regexp-Debugger-0.002007.tar.gz, DCONWAY, 2023; MetaCPAN )
Regexp-Debugger/lib/Regexp/Debugger.pm ( view source; MetaCPAN )
 ? 'heatmap'
            : $display =~ m{^visual}i  ? 'visual'
            : $display =~ m{^JSON}i    ? 'JSON'
            : croak "Unknown 'display' option: '$display'";
    }

    # Configure destin
h} || $data_mode ne 'JSON') {
            _print $CLEAR_SCREEN;
            _say $history_of{$data_mode}[-1]{display};
        }
    }
}

sub _show_JSON    { _show_if_active('JSON',    @_) }
sub _show
  }

        elsif ($input eq 'j') {
            $display_mode = 'JSON';
#            say _info_colourer(
#                qq{\n\n[JSON data of regex at $state{$regex_ID}{location}]}
#              . 
Data-Format-Pretty-Console ( P/PE/PERLANCAR/Data-Format-Pretty-Console-0.392.tar.gz, PERLANCAR, 2023; MetaCPAN )
Data-Format-Pretty-Console/lib/Data/Format/Pretty/Console.pm ( view source; MetaCPAN )
se JSON::MaybeXS;

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2023-08-07'; # DATE
our $DIST = 'Data-Format-Pretty-Console'; # DIST
our $VERSION = '0.392'; # VERSION

my $json = JSON::
umn_orders} //= $json->decode(
        $ENV{FORMAT_PRETTY_TABLE_COLUMN_ORDERS})
        if defined($ENV{FORMAT_PRETTY_TABLE_COLUMN_ORDERS});
    $opts->{table_column_formats} //= $json->decode(
      
       if defined($ENV{FORMAT_PRETTY_TABLE_COLUMN_FORMATS});
    $opts->{table_column_types} //= $json->decode(
        $ENV{FORMAT_PRETTY_TABLE_COLUMN_TYPES})
        if defined($ENV{FORMAT_PRETTY_TA
OpenAIAsync ( S/SI/SIMCOP/OpenAIAsync-0.01-TRIAL.tar.gz, SIMCOP, 2023; MetaCPAN )
OpenAIAsync/lib/OpenAIAsync/Types/Requests/ChatCompletion.pod ( view source; MetaCPAN )
n of specific formats of responses.

OpenAI supports two values, null and C<json_object> to force a correctly formatted JSON response.  Needs additional documentation
for how to use this before I enab
OpenAIAsync ( S/SI/SIMCOP/OpenAIAsync-0.01-TRIAL.tar.gz, SIMCOP, 2023; MetaCPAN )
OpenAIAsync/lib/OpenAIAsync/Types/Results.pm ( view source; MetaCPAN )
:Role::AutoJSON;
use Object::Pad::ClassAttr::Struct;

class OpenAIAsync::Types::Results::ToolCall :does(OpenAIAsync::Types::Base) :Struct {
  field $id :JSONStr = undef;
  field $type :JSONStr = undef
does(OpenAIAsync::Types::Base) :Struct {
  field $arguments :JSONStr = undef; # TODO decode the json from this directly?
  field $name :JSONStr = undef;
}

class OpenAIAsync::Types::Results::ChatMessa
uct {
  field $content :JSONStr;
  field $tool_calls :MarshalTo([OpenAIAsync::Types::Results::ToolCall]) = undef; # don't think my local server provides this
  field $role :JSONStr;
  field $function_

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