Group
Extension

Matches 35358

Smartcat-Client ( T/TA/TARAS/Smartcat-Client-0.0.3.tar.gz, TARAS, 2021; MetaCPAN )
Smartcat-Client/lib/Smartcat/Client/Object/GlossaryModel.pm ( view source; MetaCPAN )
at::Client::Object::GlossaryModel;

require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
    return decode_json( JSON->new->convert_blessed->encode(shift) );
}

# used by JSON for serialization
sub TO_JSON {
    my $self  = shift;
    my $_data = {};
    f
alize the data
    while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
        my $_json_attribute = $self->attribute_map->{$_key};
        if ( $_type =~ /^array\[/i ) {    # array
    
Smartcat-Client ( T/TA/TARAS/Smartcat-Client-0.0.3.tar.gz, TARAS, 2021; MetaCPAN )
Smartcat-Client/lib/Smartcat/Client/Object/Executive.pm ( view source; MetaCPAN )
artcat::Client::Object::Executive;

require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
    return decode_json( JSON->new->convert_blessed->encode(shift) );
}

# used by JSON for serialization
sub TO_JSON {
    my $self  = shift;
    my $_data = {};
    f
alize the data
    while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
        my $_json_attribute = $self->attribute_map->{$_key};
        if ( $_type =~ /^array\[/i ) {    # array
    
Smartcat-Client ( T/TA/TARAS/Smartcat-Client-0.0.3.tar.gz, TARAS, 2021; MetaCPAN )
Smartcat-Client/lib/Smartcat/Client/Object/DocumentWorkflowStageModel.pm ( view source; MetaCPAN )
bject::DocumentWorkflowStageModel;

require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
    return decode_json( JSON->new->convert_blessed->encode(shift) );
}

# used by JSON for serialization
sub TO_JSON {
    my $self  = shift;
    my $_data = {};
    f
alize the data
    while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
        my $_json_attribute = $self->attribute_map->{$_key};
        if ( $_type =~ /^array\[/i ) {    # array
    
Geo-What3Words ( E/ED/EDF/Geo-What3Words-3.0.3.tar.gz, EDF, 2021; MetaCPAN )
Geo-What3Words/lib/Geo/What3Words.pm ( view source; MetaCPAN )
ckage Geo::What3Words;
$Geo::What3Words::VERSION = '3.0.3';
use strict;
use warnings;
use Cpanel::JSON::XS;
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
use Encode qw( decode_utf8 );
use HTTP::Tiny;
hashref is_coderef );
use URI;
# DO NOT TRY TO USE URI::XS IT JUST LEADS TO PROBLEMS

my $JSONXS = Cpanel::JSON::XS->new->allow_nonref(1);




sub new {
    my ($class, %params) = @_;

    my $self = 
;

    my $rh_fields = {
        #a      => 1,
        key    => $self->{key},
        format => 'json',
        %$rh_params
    };

    foreach my $key (keys %$rh_fields) {
        delete $rh_fields-
Smartcat-Client ( T/TA/TARAS/Smartcat-Client-0.0.3.tar.gz, TARAS, 2021; MetaCPAN )
Smartcat-Client/lib/Smartcat/Client/Object/ExecutiveModel.pm ( view source; MetaCPAN )
t::Client::Object::ExecutiveModel;

require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
    return decode_json( JSON->new->convert_blessed->encode(shift) );
}

# used by JSON for serialization
sub TO_JSON {
    my $self  = shift;
    my $_data = {};
    f
alize the data
    while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
        my $_json_attribute = $self->attribute_map->{$_key};
        if ( $_type =~ /^array\[/i ) {    # array
    
Finance-QuoteHist ( M/MS/MSISK/Finance-QuoteHist-1.32.tar.gz, MSISK, 2021; MetaCPAN )
Finance-QuoteHist/lib/Finance/QuoteHist/Yahoo.pm ( view source; MetaCPAN )
;

use Finance::QuoteHist::Generic;
@ISA = qw(Finance::QuoteHist::Generic);

use Date::Manip;
use JSON;

# curl 'https://query2.finance.yahoo.com/v8/finance/chart/TLSA?formatted=true&crumb=l92p7dftYe%
  my $that = shift;
  my $class = ref($that) || $that;
  my %parms = @_;

  $parms{parse_mode} = 'json';
  $parms{ua_params} ||= {};
  $parms{ua_params}{cookie_jar} ||= {};

  my $self = __PACKAGE__->
   $target_mode eq 'split' ||
                      $target_mode eq 'dividend';

  $parse_mode = "json";

  my $granularity = lc($parms{granularity} || $self->granularity);
  my $grain = 'd';
  $granu
Mojolicious-Plugin-Restify ( K/KW/KWAKWA/Mojolicious-Plugin-Restify-0.10.tar.gz, KWAKWA, 2021; MetaCPAN )
Mojolicious-Plugin-Restify/lib/Mojolicious/Plugin/Restify.pm ( view source; MetaCPAN )
y $c = shift;

    # account was placed in the stash in the resource_lookup action
    $c->render(json => $c->stash('account'));
  }

  sub patch { ... }

  sub update { ... }

  1;

=head1 DESCRIPTIO
DTA-CAB ( M/MO/MOOCOW/DTA-CAB-1.115.tar.gz, MOOCOW, 2021; MetaCPAN )
DTA-CAB/CAB/index.pod ( view source; MetaCPAN )
g DTA::CAB::Analyzer::Dict::JsonDB

=item L<DTA::CAB::Analyzer::Cache::Static::BDB|DTA::CAB::Analyzer::Cache::Static::BDB>

Static cache using DTA::CAB::Analyzer::Dict::JsonDB

=item L<DTA::CAB::Analy
AB::Analyzer::Dict::Json|DTA::CAB::Analyzer::Dict::Json>

generic analysis dictionary API using JSON values

=item L<DTA::CAB::Analyzer::Dict::JsonCDB|DTA::CAB::Analyzer::Dict::JsonCDB>

generic analy
sis dictionary API using JSON values

=item L<DTA::CAB::Analyzer::Dict::JsonDB|DTA::CAB::Analyzer::Dict::JsonDB>

generic analysis dictionary API using JSON values

=item L<DTA::CAB::Analyzer::DmootSu
DTA-CAB ( M/MO/MOOCOW/DTA-CAB-1.115.tar.gz, MOOCOW, 2021; MetaCPAN )
DTA-CAB/CAB/WebServiceHowto.pod ( view source; MetaCPAN )
]

Simple machine-readable "vertical" text format based on the L<TT|/TT>
format but using L<JSON|http://json.org/> to encode sentence- and token-level attributes
rather than an explicit attribute labe

"C<%%$TJ:DOC=>I<JSON>", where I<JSON> is a JSON object representing
auxilliary document attributes.
Sentence-attribute lines are analogousd comments of the form
"C<%%$TJ:SENT=>I<JSON>".
Token lines c
onsist of the the token surface text,
followed by a TAB character,
followed by a JSON object representing the internal token structure.

Useful for further script-based processing.

=cut

##==========
DTA-CAB ( M/MO/MOOCOW/DTA-CAB-1.115.tar.gz, MOOCOW, 2021; MetaCPAN )
DTA-CAB/CAB/Client/CGIWrapper.pm ( view source; MetaCPAN )
=>'csv',  class=>'DTA::CAB::Format::CSV', label=>'CSV'},
				      {key=>'json', class=>'DTA::CAB::Format::JSON', label=>'JSON', level=>1},
				      {key=>'perl', class=>'DTA::CAB::Format::Perl', lab
Doc() if (!$qdoc);
  $qopts = $wr->parseQueryOpts() if (!$qopts);

  #my $fmt = DTA::CAB::Format::JSON->new;
  my $fmt = DTA::CAB::Format::YAML->new;
  my $qstr = $fmt->putDocument($qdoc)->toString
  
DTA-CAB ( M/MO/MOOCOW/DTA-CAB-1.115.tar.gz, MOOCOW, 2021; MetaCPAN )
DTA-CAB/CAB/Client/HTTP.pm ( view source; MetaCPAN )
fault='/xmlrpc')
##
##     format   => $formatName,       ##-- default query I/O format (default='json')
##     #encoding => $encoding,         ##-- query encoding (always utf8)
##     cacheGet => $bo
   rpcpath => '/xmlrpc',
			   ##
			   cacheGet=>1,
			   cacheSet=>1,
			   ##
			   format => 'json',
			   ##
			   ##-- low-level stuff
			   ua => undef,
			   uargs => {},
			   ##
			   ##-- u
rpc')
     format => $fmtName,            ##-- DTA::CAB::Format short name for transfer (default='json')
     cacheGet => $bool,             ##-- allow cached response from server? (default=1)
     ca
DTA-CAB ( M/MO/MOOCOW/DTA-CAB-1.115.tar.gz, MOOCOW, 2021; MetaCPAN )
DTA-CAB/CAB/Format/Builtin.pm ( view source; MetaCPAN )
::Text1; ##-- test v1.x
use DTA::CAB::Format::TT;
use DTA::CAB::Format::TJ;     ##-- tt-like with json-encoded token data
use DTA::CAB::Format::ExpandList; ##-- flat tt-like expansion list, for DDC
us
emmaList; ##-- flat tt-like lemma-list, for DDC
use DTA::CAB::Format::YAML;
use DTA::CAB::Format::JSON;
use DTA::CAB::Format::XmlCommon;
use DTA::CAB::Format::XmlNative; ##-- load first to avoid clobb
DTA-CAB ( M/MO/MOOCOW/DTA-CAB-1.115.tar.gz, MOOCOW, 2021; MetaCPAN )
DTA-CAB/CAB/Analyzer/Extra.pm ( view source; MetaCPAN )
e DTA::CAB::Analyzer::Common;

use DTA::CAB::Analyzer::Dict::Json;
use DTA::CAB::Analyzer::Dict::JsonDB;
use DTA::CAB::Analyzer::Dict::JsonCDB;

use DTA::CAB::Analyzer::TextPhonetic;
use DTA::CAB::Ana
DTA-CAB ( M/MO/MOOCOW/DTA-CAB-1.115.tar.gz, MOOCOW, 2021; MetaCPAN )
DTA-CAB/CAB/Datum.pm ( view source; MetaCPAN )
turn DTA::CAB::Document->new(@_); ##-- default
}


## $thingy = $obj->TO_JSON()
##  + annoying wrapper for JSON::XS
sub TO_JSON {
  return { %{$_[0]} };
}

1; ##-- be happy

__END__

##===============
DTA-CAB ( M/MO/MOOCOW/DTA-CAB-1.115.tar.gz, MOOCOW, 2021; MetaCPAN )
DTA-CAB/CAB/Format.pm ( view source; MetaCPAN )
tDocument($_[1]); }


## $fmt = $fmt->putData($data)
##  + put arbitrary raw data (e.g. for YAML, JSON, XmlPerl)
sub putData {
  $_[0]->logconfess("putData() not implemented!");
}

1; ##-- be happy

_
/format.html>
format, with optional special handling for additional C<MISC> fields, including
C<json=JSON> for embedding L<DTA::CAB::Format::TJ|DTA::CAB::Format::TJ> CAB-token structure.
Registered as
mat::JSON|DTA::CAB::Format::JSON>

Abstract datum parser|formatter for JSON I/O.
Transparently wraps one of the
L<DTA::CAB::Format::JSON::XS|DTA::CAB::Format::JSON::XS>
or
L<DTA::CAB::Format::JSON::Sy
DTA-CAB ( M/MO/MOOCOW/DTA-CAB-1.115.tar.gz, MOOCOW, 2021; MetaCPAN )
DTA-CAB/CAB/Format/SQLite.pm ( view source; MetaCPAN )
-------------------------------
## Methods: Output: Generic API
##  + these methods just dump raw json
##  + you're pretty much restricted to dumping a single document here

## $fmt = $fmt->putAnythin
App-TimeTracker-Command-Billing ( D/DO/DOMM/App-TimeTracker-Command-Billing-1.001.tar.gz, DOMM, 2021; MetaCPAN )
App-TimeTracker-Command-Billing/lib/App/TimeTracker/Command/Billing.pm ( view source; MetaCPAN )
nth or quarter. This is very
helpful for mapping tasks to maintainance contracts.

  cat .tracker.json
  "billing":{
      "required":false,
      "default": "strftime",
      "strftime": "%Y/Q%{quart
Mojo-Response-JSON-Path ( S/SC/SCESANO/Mojo-Response-JSON-Path-0.004.tar.gz, SCESANO, 2021; MetaCPAN )
Mojo-Response-JSON-Path/skunk/weirdo_03.pl ( view source; MetaCPAN )
ies&format=json&props=sitelinks&ids=Q19675&sitefilter=enwiki");

my $id = "Q100148272";
$url->query({ ids => $id });

$tx = $ua->get($url);

my $json = $tx->res->json();

print dumper $json;

print du
mper $tx->res->json('//title');

my $u = Weirdo->new($json);

print dumper $u->get('$.entities.Q100148272.sitelinks.enwiki.title');

print dumper $u->get('..title');


Google-ISBNNumbers ( E/EC/ECHERNOF/Google-ISBNNumbers-1.00.tar.gz, ECHERNOF, 2021; MetaCPAN )
Google-ISBNNumbers/lib/Google/ISBNNumbers.pm ( view source; MetaCPAN )
package Google::ISBNNumbers;

use HTTP::Tiny;
use Cpanel::JSON::XS;
use Carp;
use strict;
use warnings;

our $VERSION = "1.00";

sub new {
	my ($class, $google_api_key) = @_;
	
	# the API key is requi
 self, with an HTTP::Tiny and Cpanel::JSON objects
	my $self = bless {
		'api_key' => $google_api_key,
		'http' => HTTP::Tiny->new,
		'json_coder' => Cpanel::JSON::XS->new->utf8->allow_nonref->allow_b
up failed: ".$response->{reason} unless $response->{success};
	
	# translate JSON to data struct
	my $results = $self->{json_coder}->decode( $response->{content} );
	
	# must be an array
	croak "Inval
Mojo-Response-JSON-Path ( S/SC/SCESANO/Mojo-Response-JSON-Path-0.004.tar.gz, SCESANO, 2021; MetaCPAN )
Mojo-Response-JSON-Path/skunk/weirdo_server.pl ( view source; MetaCPAN )
in/env perl
use Mojolicious::Lite;

plugin 'Config';

get '/' => sub {
    my $c = shift;
    my $json = {
		"entities" => {
			       "Q100148272" => {
						"id" => "Q100148272",
						"sitelinks" =

						"type" => "item"
					       }
			      },
		"success" => 1
	       };

    $c->render(json => $json);
};

app->start;

__DATA__

@@ index.html.ep
% layout 'default';
% title 'Welcome';
<h1>Wel

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