Group
Extension

Matches 35358

WebService-Bonusly ( H/HA/HANENKAMP/WebService-Bonusly-1.001.tar.gz, HANENKAMP, 2016; MetaCPAN )
WebService-Bonusly/lib/WebService/Bonusly/Base.pm ( view source; MetaCPAN )
 '_build_ua',
);

# Undocumented attribute, mostly useful for testing. Use at your own risk!
has _json_flags => (
    is          => 'ro',
    isa         => 'HashRef',
    required    => 1,
    defau
WebService-HealthGraph ( O/OA/OALDERS/WebService-HealthGraph-0.000004.tar.gz, OALDERS, 2016; MetaCPAN )
WebService-HealthGraph/lib/WebService/HealthGraph/Response.pm ( view source; MetaCPAN )
e::HealthGraph::Response::VERSION = '0.000004';
use Moo;

use Array::Iterator ();
use JSON::MaybeXS qw( decode_json );
use Types::Standard qw( Bool CodeRef InstanceOf Maybe Ref );
use Types::URI qw( U
my $self    = shift;
    my $content = $self->raw->decoded_content;

    return $content ? decode_json($content) : undef;
}

sub _build_iterator {
    my $self    = shift;
    my $content = $self->con
WebService-HealthGraph ( O/OA/OALDERS/WebService-HealthGraph-0.000004.tar.gz, OALDERS, 2016; MetaCPAN )
WebService-HealthGraph/lib/WebService/HealthGraph.pm ( view source; MetaCPAN )
d' if $feed;

        $headers->{Accept}
            = sprintf( 'application/vnd.com.runkeeper.%s+json', $accept );
    }

    # Fix up URLs with a semicolon delimiter.
    if ( $url =~ m{;} ) {
     
      {
            headers =>
                { Accept => 'application/vnd.com.runkeeper.Records+json' }
        );

Returns a L<WebService::HealthGraph::Response> object.

=head1 CAVEATS

Most respo
switchman ( K/KO/KOMAROV/switchman-1.16.tar.gz, KOMAROV, 2016; MetaCPAN )
switchman/lib/App/Switchman.pm ( view source; MetaCPAN )
ct;
use warnings;

use File::Basename qw(basename);
use Getopt::Long qw(GetOptionsFromArray);
use JSON;
use Linux::MemInfo;
use List::MoreUtils qw(part uniq);
use List::Util qw(max);
use Log::Dispatch
 prefix znode
Sets prefix_data_watch

=cut

sub load_prefix_data
{
    my $self = shift;

    my $json_data = $self->zkh->get($self->prefix, watch => $self->prefix_data_watch);
    if ($self->zkh->get
".$self->zkh->str_error);
    }

    my (%data, $prefix_data);
    if ($json_data) {
        $prefix_data = eval {from_json($json_data)};
        if (!$prefix_data || $@) {
            $self->_error("
AnyEvent-ClickHouse ( M/MM/MMV/AnyEvent-ClickHouse-0.031.tar.gz, MMV, 2016; MetaCPAN )
AnyEvent-ClickHouse/lib/AnyEvent/ClickHouse.pm ( view source; MetaCPAN )
                   (default)

=item * TabSeparatedWithNames

=item * CSV

=item * Pretty

=item * JSON

=item * XML

=item * ...

=back

L<https://clickhouse.yandex/reference_en.html#Formats>

    cli
Complete-Fish-Gen-FromPerinciCmdLine ( P/PE/PERLANCAR/Complete-Fish-Gen-FromPerinciCmdLine-0.004.tar.gz, PERLANCAR, 2016; MetaCPAN )
Complete-Fish-Gen-FromPerinciCmdLine/lib/Complete/Fish/Gen/FromPerinciCmdLine.pm ( view source; MetaCPAN )
  meta_is_normalized => 1,
        common_opts => $cli->{common_opts},
        per_arg_json => $cli->{per_arg_json},
        per_arg_yaml => $cli->{per_arg_yaml},
    );
    return [500, "Can't genera
> $gengls_res,
        meta => $meta,
        meta_is_normalized => 1,
        per_arg_json => $cli->{per_arg_json},
        per_arg_yaml => $cli->{per_arg_yaml},
    );
    return [500, "Can't genera
WebService-Bonusly ( H/HA/HANENKAMP/WebService-Bonusly-1.001.tar.gz, HANENKAMP, 2016; MetaCPAN )
WebService-Bonusly/lib/WebService/Bonusly/Service.pm ( view source; MetaCPAN )
ce::Bonusly::Service;
$WebService::Bonusly::Service::VERSION = '1.001';
use v5.14;
use Moose;
use JSON;
use Try::Tiny;
use URI::Escape;

# ABSTRACT: A utility class for WebService::Bonusly services


Bonusly',
    required    => 1,
    weak_ref    => 1,
    handles     => [ qw( token base_url ua _json_flags print_debug ) ],
);

sub _perform_action {
    my ($self, $method, $path_info, $params, $to
       my $content = to_json(\%clean, $self->_json_flags);

        $self->print_debug("SEND>> $method $path");
        $self->print_debug("SEND>> Content-Type: application/json");
        $self->prin
Complete-Zsh-Gen-FromPerinciCmdLine ( P/PE/PERLANCAR/Complete-Zsh-Gen-FromPerinciCmdLine-0.002.tar.gz, PERLANCAR, 2016; MetaCPAN )
Complete-Zsh-Gen-FromPerinciCmdLine/lib/Complete/Zsh/Gen/FromPerinciCmdLine.pm ( view source; MetaCPAN )
  meta_is_normalized => 1,
        common_opts => $cli->{common_opts},
        per_arg_json => $cli->{per_arg_json},
        per_arg_yaml => $cli->{per_arg_yaml},
    );
    return [500, "Can't genera
> $gengls_res,
        meta => $meta,
        meta_is_normalized => 1,
        per_arg_json => $cli->{per_arg_json},
        per_arg_yaml => $cli->{per_arg_yaml},
    );
    return [500, "Can't genera
Mojolicious-Plugin-QuickPg ( A/AZ/AZJADFTRE/Mojolicious-Plugin-QuickPg-1.6.tar.gz, AZJADFTRE, 2016; MetaCPAN )
Mojolicious-Plugin-QuickPg/lib/Mojolicious/Plugin/QuickPg.pm ( view source; MetaCPAN )
ww.flickr.com/search/?text=Moscow' } );
  # or you can do like this
  
  my $params = $c->req->json;
  
  # Do not forget to validate $params before it:
  
  my $id = $c->insert('models', $para
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect.pod ( view source; MetaCPAN )
  return {
                success => \1,  # JSON::true
            };
        }
        else {
            return {
                success => \0,  # JSON::false
                error   => "You shall
esides that, Ext.Direct also has several major advantages over similar
protocols like XML-RPC and JSON-RPC:

=over 4

=item *

Built in service discovery mechanism: server side API is published to the
s. For more info,
see L</"FILE UPLOADS">.

Note that any field values in a submitted form will be JSON encoded
by the client side.

=item *

All remoting Methods are called in scalar context. Returnin
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/Util.pm ( view source; MetaCPAN )
:Util;

use strict;
use warnings;
no  warnings 'uninitialized';       ## no critic

use Carp;
use JSON;

use base 'Exporter';

our @EXPORT_OK = qw/
    clean_error_message
    get_caller_info
    pars
ed ) {
        # Whoever sends *multiple* metadata fields is going to regret it.
        my $meta_json = 'ARRAY' eq ref $meta_encoded ? pop @$meta_encoded
                      :                      
oded
                      ;

        local $@;
        $keywords->{metadata} = eval { JSON::from_json($meta_json) };

        if ( $@ ) {
            my $error = clean_error_message($@);
            
RPC-ExtDirect-Server ( T/TO/TOKAREV/RPC-ExtDirect-Server-1.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect-Server/lib/RPC/ExtDirect/Server.pm ( view source; MetaCPAN )

    jpg  => 'image/jpeg',
    jpeg => 'image/jpeg',
    js   => 'text/javascript',
    json => 'application/json',
    midi => 'audio/x-midi',
    mp3  => 'audio/mpeg',
    mpeg => 'video/mpeg',
    
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/API/Method.pm ( view source; MetaCPAN )
d;

use strict;
use warnings;
no  warnings 'uninitialized';           ## no critic

use Carp;
use JSON;

use RPC::ExtDirect::Config;
use RPC::ExtDirect::Util ();
use RPC::ExtDirect::Util::Accessor;

#


    my $def;
    
    # Form handlers are defined like this
    # (\1 means JSON::true and doesn't force us to `use JSON`)
    if ( $self->formHandler ) {
        $def = { name => $name, formHandler
xtDirect::Client will call this method to prepare
# the arguments that are about to be encoded in JSON and passed
# over to the server side.
#
# The difference is that the server side wants an unfolde
WWW-TVMaze ( B/BS/BSM/WWW-TVMaze-0.06.tar.gz, BSM, 2016; MetaCPAN )
WWW-TVMaze/lib/WWW/TVMaze.pm ( view source; MetaCPAN )
package WWW::TVMaze;

use 5.006;
use strict;
use warnings;
use Mouse;
use LWP::UserAgent;
use JSON::XS;
use DateTime;
use Params::Validate qw(:all);

=head1 NAME

WWW::TVMaze - Interface to TVMaze API
	return {};
	}

	my $data = {};
	eval {
		$data = decode_json($response->decoded_content);
	};
	if ($@) {
		$self->error('problem decoding json');
		return undef;
	}
	return $data;
}







=head1 AUT
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/API/Method.pod ( view source; MetaCPAN )
ecode_params>

This optional parameter may contain the list of fields that should be
decoded from JSON for a formHandler Method. Does nothing for Methods
with other calling conventions.

=item C<metad
RPC-ExtDirect-Server ( T/TO/TOKAREV/RPC-ExtDirect-Server-1.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect-Server/lib/RPC/ExtDirect/Server.pod ( view source; MetaCPAN )
> '/var/run',
    );
    
    $server->run();

Another easy speed gain can be had by installing L<JSON::XS> module;
it will be used automatically when detected.

=head2 Troubleshooting server issues

RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/Test/Data/Router.pm ( view source; MetaCPAN )
{
        status => 200,
        content_type => qr|^application/json\b|,
        content_length => 249,
        comparator => 'cmp_json',
        content => 
            q|{"action":null,"message":"E
{
        status => 200,
        content_type => qr|^application/json\b|,
        content_length => 78,
        comparator => 'cmp_json',
        content => 
            q|{"action":"Foo","method":"fo
    },
    },
    
    output => {
        status => 200,
        content_type => qr|^application/json\b|,
        content_length => 304,
        comparator => 'cmp_str',
        content => 
         
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/Test/Data/Poll.pm ( view source; MetaCPAN )
{
        status => 200,
        content_type => qr|^application/json\b|,
        content_length => 109,
        comparator => 'cmp_json',
        content => 
            q|[{"data":["foo"],|.
       
{
        status => 200,
        content_type => qr|^application/json\b|,
        content_length => 65,
        comparator => 'cmp_json',
        content =>
            q|{"data":"Uno cappuccino, pres
{
        status => 200,
        content_type => qr|^application/json\b|,
        content_length => 44,
        comparator => 'cmp_json',
        content => q|{"data":"","name":"__NONE__","type":"even
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/Test/Util.pm ( view source; MetaCPAN )

use base 'Exporter';

use Test::More;
use JSON;

our @EXPORT = qw/
    ref_ok
    is_deep
    cmp_api
    prepare_input
/;

our @EXPORT_OK = qw/
    cmp_json
/;

### EXPORTED PUBLIC PACKAGE SUBROUTIN
wo JSON structures, ignoring the whitespace
#

sub cmp_json {
    # This can be called either as a class method, or a plain sub
    shift if $_[0] eq __PACKAGE__;
    
    my ($have_json, $want_json, 
desc) = @_;
    
    $_ =~ s/\s//g for ($have_json, $want_json);
    
    my $have = JSON::from_json($have_json);
    my $want = JSON::from_json($want_json);
    
    is_deep $have, $want, $desc;
}

#
Acme-IsItJSON ( B/BK/BKB/Acme-IsItJSON-0.02.tar.gz, BKB, 2016; MetaCPAN )
Acme-IsItJSON/lib/Acme/IsItJSON.pod ( view source; MetaCPAN )
d1 NAME

Acme::IsItJSON - Is my variable JSON or a Perl data structure?

=head1 SYNOPSIS

    use Acme::IsItJSON 'is_it_json';
    my $json = '{"zilog":"z80"}';
    is_it_json ($json);
    my $perl = 
80'};
    is_it_json ($json);

=head1 DESCRIPTION

Not sure if your variable is a Perl data structure or a JSON string?

This Perl module can help.

=head1 FUNCTIONS

=head2 is_it_json

Given a variab
ot be JSON or a Perl data structure, feed it to
this routine. This module uses support vector machines running on an
OCAML cluster backed up by a Node pipeline in an S3 cloud to
distinguish JSON from 

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