Group
Extension

Matches 35359

Search-OpenSearch ( K/KA/KARMAN/Search-OpenSearch-0.409.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch/lib/Search/OpenSearch/Response/XML.pm ( view source; MetaCPAN )
           => 1,                   # include results
    format      => 'XML',               # or JSON
 );
 print $response;

=head1 DESCRIPTION

Search::OpenSearch::Response::XML serializes to XML fo
Search-OpenSearch ( K/KA/KARMAN/Search-OpenSearch-0.409.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch/lib/Search/OpenSearch/Response/Tiny.pm ( view source; MetaCPAN )
rch::OpenSearch::Response::Tiny;
use Moose;
use Carp;
extends 'Search::OpenSearch::Response::JSON';
use JSON;

our $VERSION = '0.409';

my %tiny_fields = map { $_ => 1 } qw(
    total
    facets
    r
g
        ? JSON->new->utf8->pretty(1)->encode($resp)
        : encode_json($resp);
}

1;

__END__

=head1 NAME

Search::OpenSearch::Response::Tiny - provide minimal search results in JSON format

=he
 # or JSON, XML, ExtJS
    x   => [qw( foo bar )],     # return only a subset of fields
 );
 print $response;

=head1 DESCRIPTION

Search::OpenSearch::Response::Tiny serializes to a minimal
JSON strin
Mojolicious-Plugin-ConsoleLogger ( T/TE/TEMPIRE/Mojolicious-Plugin-ConsoleLogger-0.06.tar.gz, TEMPIRE, 2015; MetaCPAN )
Mojolicious-Plugin-ConsoleLogger/lib/Mojolicious/Plugin/ConsoleLogger.pm ( view source; MetaCPAN )
onsoleLogger;

use Mojo::Base 'Mojolicious::Plugin';
use Mojo::ByteStream;
use Mojo::JSON qw(decode_json encode_json);

our $VERSION = 0.06;

has logs => sub {
  return {
    fatal => [],
    info  =>
   my $self = shift;
      # Patched Nov 23, 2014 to work with JSON
      return if $self->res->headers->content_type eq 'application/json';
      my $logs = $plugin->logs;

      # Leave static conte
 }
  );
}

sub _format_msg {
  my $msg = shift;

  return ref($msg)
    ? "console.log(" . encode_json($msg) . "); "
    : "console.log(" . Mojo::ByteStream->new($msg)->quote . "); ";
}

1;

=head1 NA
task-belike-est ( E/ES/EST/task-belike-est-0.02.tar.gz, EST, 2015; MetaCPAN )
task-belike-est/lib/Task/BeLike/EST.pod ( view source; MetaCPAN )
p::cpanoutdated>

=item L<Dist::Milla>

=back

=head2 DATA SERIALISER

=over

=item L<JSON::MaybeXS>

=item L<JSON>

=item L<XML::Twig>

=item L<XML::LibXML>

=item L<XML::Toolkit>

=item L<YAML>

=it
Task-BeLike-EST ( E/ES/EST/Task-BeLike-EST-0.01.tar.gz, EST, 2015; MetaCPAN )
Task-BeLike-EST/lib/Task/BeLike/EST.pod ( view source; MetaCPAN )
=item App::cpanoutdated

=item Dist::Milla

=back

=head2 DATA SERIALISER

=over

=item JSON::MaybeXS

=item JSON

=item XML::Twig

=item XML::LibXML

=item XML::Toolkit

=item YAML

=item YAML::Tiny
Search-OpenSearch ( K/KA/KARMAN/Search-OpenSearch-0.409.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch/lib/Search/OpenSearch/Engine.pm ( view source; MetaCPAN )
rch::OpenSearch::Facets;
use Search::OpenSearch::Response::XML;
use Search::OpenSearch::Response::JSON;
use Search::OpenSearch::Response::ExtJS;
use Search::OpenSearch::Response::Tiny;
use Search::Too
ols::UTF8;
use Search::Tools;
use CHI;
use Time::HiRes qw( time );
use Data::Dump qw( dump );
use JSON;

use namespace::autoclean;

has 'index' => ( is => 'rw', isa => ArrayRef, );
has 'facets' => (
 
 $self->default_response_format;

    # backwards compat
    if ( $format eq 'xml' or $format eq 'json' ) {
        $format = uc($format);
    }

    my $response_class = $args{response_class}
       
OIDC-Lite ( R/RI/RITOU/OIDC-Lite-0.10.tar.gz, RITOU, 2015; MetaCPAN )
OIDC-Lite/lib/OIDC/Lite/Model/IDToken.pm ( view source; MetaCPAN )
s;
use base 'Class::Accessor::Fast';

use MIME::Base64 qw/encode_base64url decode_base64url/;
use JSON::WebToken qw/encode_jwt decode_jwt/;
use Params::Validate;
use Digest::SHA qw/sha256 sha384 sha51
OIDC-Lite ( R/RI/RITOU/OIDC-Lite-0.10.tar.gz, RITOU, 2015; MetaCPAN )
OIDC-Lite/lib/OIDC/Lite/Client/WebServer.pm ( view source; MetaCPAN )
>agent(
            join "/", __PACKAGE__, $OAuth::Lite2::VERSION);
    }

    $self->{format} = 'json';
    $self->{response_parser} = OIDC::Lite::Client::TokenResponseParser->new;
    $self->{state_
Search-OpenSearch ( K/KA/KARMAN/Search-OpenSearch-0.409.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch/lib/Search/OpenSearch.pm ( view source; MetaCPAN )
ude facets
    r   => 1,                   # include results
    t   => 'XML',               # or JSON
    u   => 'http://yourdomain.foo/opensearch/',
    b   => 'AND',               # or OR
    x   =
Test-Deep-JWT ( A/AD/ADDSICT/Test-Deep-JWT-0.02.tar.gz, ADDSICT, 2015; MetaCPAN )
Test-Deep-JWT/lib/Test/Deep/JWT.pm ( view source; MetaCPAN )
p::JWT;
use 5.008005;
use strict;
use warnings;
use MIME::Base64 qw(decode_base64url);
use JSON qw(decode_json);
use Test::Deep ();
use Test::Deep::Cmp;
use Exporter qw(import);

our $VERSION = "0.02"
 $claims, $sig) = split /\./, $got;
        return (
            decode_json(decode_base64url($header)),
            decode_json(decode_base64url($claims))
        );
    };
    if (my $e = $@) {
    
<gt>

=head1 THANKS

This module is highly inspired from L<Test::Deep::JSON>.
The most part of implementation is borrowed from that module.

=head1 SEE ALSO

L<Test::Deep>

L<Test::Deep::JSON>

=cut

Cog ( I/IN/INGY/Cog-0.11.tar.gz, INGY, 2015; MetaCPAN )
Cog/lib/Cog/Maker.pm ( view source; MetaCPAN )
 my $self = shift;
    my $config_path = $self->app->config_file;
    my $data = {
        json => $self->json->encode(YAML::XS::LoadFile($config_path)),
    };
    my $build = $self->app->build_root;
rint($javascript);
}

sub make_url_map_js {
    my $self = shift;
    my $data = {
        json => $self->json->encode($self->config->url_map),
    };
    my $build = $self->app->build_root;
    my $j
Dallycot ( J/JS/JSMITH/Dallycot-0.151630.tar.gz, JSMITH, 2015; MetaCPAN )
Dallycot/lib/Dallycot/AST.pm ( view source; MetaCPAN )
d_nodes;
}

=method to_json

Returns a Perl Hash containing the JSON-LD representation of the node and
any child nodes.

=cut

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

  croak "to_json not defined for " . ( 
Etcd ( R/RO/ROBN/Etcd-0.004.tar.gz, ROBN, 2015; MetaCPAN )
Etcd/lib/Etcd/Error.pm ( view source; MetaCPAN )
package Etcd::Error;
$Etcd::Error::VERSION = '0.004';
use namespace::autoclean;

use JSON qw(decode_json);
use Carp qw(longmess);

use Moo;
use Types::Standard qw(Str Int);

has error_code => ( is => 
a => Str, required => 1 );

sub new_from_http {
    my ($class, $res) = @_;
    my $data = decode_json($res->{content});
    $class->new(%$data, trace => longmess());
}

use overload
    q{""} => sub 
Dallycot ( J/JS/JSMITH/Dallycot-0.151630.tar.gz, JSMITH, 2015; MetaCPAN )
Dallycot/lib/Dallycot/Value.pm ( view source; MetaCPAN )
 return $type;
}

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

  return $self;
}

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

  croak "to_json not defined for " . ( blessed($self) || $self );
}

sub to_string {
  my ($se
Etcd ( R/RO/ROBN/Etcd-0.004.tar.gz, ROBN, 2015; MetaCPAN )
Etcd/lib/Etcd/Stats.pm ( view source; MetaCPAN )
package Etcd::Stats;
$Etcd::Stats::VERSION = '0.004';
use namespace::autoclean;

use JSON qw(decode_json);
use Carp qw(croak);

use Moo::Role;
use Types::Standard qw(Str);

requires qw(version_prefix 
eader|store|self", [%args])' if !defined $type || $type !~ m/^(?:leader|store|self)$/;
    decode_json($self->api_exec($self->_stats_endpoint."/$type", 'GET', %args)->{content});
}

1;

__END__

=pod
Dallycot ( J/JS/JSMITH/Dallycot-0.151630.tar.gz, JSMITH, 2015; MetaCPAN )
Dallycot/lib/Dallycot/AST/JSONObject.pm ( view source; MetaCPAN )
package Dallycot::AST::JSONObject;
our $AUTHORITY = 'cpan:JSMITH';

# ABSTRACT: Create JSON-LD graph from JSON

use strict;
use warnings;

use utf8;
use parent 'Dallycot::AST';

use experimental qw(sw
es qw(deferred);

sub execute {
  my ( $self, $engine ) = @_;

  return $engine->collect(@$self)->then(sub {
    my(%properties) = @_;
    return Dallycot::Value::JSON->new(\%properties);
  });
}

1;
Etcd ( R/RO/ROBN/Etcd-0.004.tar.gz, ROBN, 2015; MetaCPAN )
Etcd/lib/Etcd/Response.pm ( view source; MetaCPAN )
ponse;
$Etcd::Response::VERSION = '0.004';
use namespace::autoclean;

use Etcd::Node;

use JSON qw(decode_json);

use Moo;
use Type::Utils qw(class_type);
use Types::Standard qw(Str Int);

has action 
 init_arg => 'prevNode' );

sub new_from_http {
    my ($class, $res) = @_;
    my $data = decode_json($res->{content});
    my %headers;
    @headers{qw(etcd_index raft_index raft_term)} = @{$res->{h
Dallycot ( J/JS/JSMITH/Dallycot-0.151630.tar.gz, JSMITH, 2015; MetaCPAN )
Dallycot/lib/Dallycot/Resolver.pm ( view source; MetaCPAN )
return a promise that will be fulfilled with the parsed/extracted
RDF as a simple graph. Different backends will parse data from
different sources.

In order of preference:
- JSON-LD
- RDF/XML
- RDFa
Dallycot ( J/JS/JSMITH/Dallycot-0.151630.tar.gz, JSMITH, 2015; MetaCPAN )
Dallycot/lib/Dallycot/Parser.pm ( view source; MetaCPAN )
ub json_object {
  my ( undef, $prop_list ) = @_;

  # my @props = map {
  #   _convert_to_json_array($_)
  # } @$prop_list;
  my @props = @$prop_list;
  return bless \@props => 'Dallycot::AST::JSONOb
b _convert_to_json_array {
#   my($ast) = @_;
#
#   if($ast -> isa('Dallycot::AST::Assign') && $ast->[1]->isa('Dallycot::AST::BuildList')) {
#     bless $ast->[1] => 'Dallycot::AST::JSONArray';
#   }
#   return $ast;
# }

sub json_prop_list {
  my( undef, @props ) = @_;

  return \@props;
}

sub json_prop {
  my( undef, $string, $value ) = @_;

  if(blessed($value) && $value->isa('Dallycot::AST::B
Dallycot ( J/JS/JSMITH/Dallycot-0.151630.tar.gz, JSMITH, 2015; MetaCPAN )
Dallycot/lib/Dallycot/AST/Expr.pm ( view source; MetaCPAN )
 strict;
use warnings;

use utf8;
use parent 'Dallycot::AST';

use Promises qw(deferred);

sub to_json {
  return +{ a => 'Expr' };
}

sub to_string { return "" }

sub to_rdf {

}

sub execute {
  my 

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