Group
Extension

Matches 35358

Clownfish-CFC ( N/NW/NWELLNHOF/Clownfish-CFC-0.6.3.tar.gz, NWELLNHOF, 2018; MetaCPAN )
Clownfish-CFC/src/CFCBindClass.h ( view source; MetaCPAN )
data(CFCBindClass *self);

/** Return host-specific data for the class as JSON fragment.
 */
char*
CFCBindClass_host_data_json(CFCBindClass *self);

#ifdef __cplusplus
}
#endif

#endif /* H_CFCBINDCLA
Clownfish-CFC ( N/NW/NWELLNHOF/Clownfish-CFC-0.6.3.tar.gz, NWELLNHOF, 2018; MetaCPAN )
Clownfish-CFC/lib/Clownfish/CFC.pm ( view source; MetaCPAN )
r %new_from_json_PARAMS = (
        json      => undef,
        file_spec => undef,
    );

    sub new_from_json {
        my ( $either, %args ) = @_;
        verify_args( \%new_from_json_PARAMS, %ar
 confess "no subclassing allowed" unless $either eq __PACKAGE__;
        return _new_from_json( @args{qw( json file_spec )} );
    }

    our %new_from_file_PARAMS = (
        file_spec => undef,
    
Hush ( L/LE/LETO/Hush-0.03.tar.gz, LETO, 2018; MetaCPAN )
Hush/lib/Hush/RPC.pm ( view source; MetaCPAN )
ce 
# (JSON::Boolean objects must be passed as boolean parameters)
#     https://bitcoin.org/en/developer-reference#getbalance
my $account = '';
my $balance = $btc->getbalance($account, 1, JSON::true)
WebService-YDMM ( A/AN/ANATOFUZ/WebService-YDMM-0.03.tar.gz, ANATOFUZ, 2018; MetaCPAN )
WebService-YDMM/lib/WebService/YDMM.pm ( view source; MetaCPAN )
e 5.008001;
use strict;
use warnings;
use utf8;

use Carp qw/croak/;
use URI;
use HTTP::Tiny;
use JSON;

our $VERSION = "0.03";


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

    croak("affiliate_id is req
  map { $query_param->{$_} = $self->{$_} } qw/affiliate_id api_id/;
    $query_param->{output} = "json";

    my $uri = URI->new($self->{_base_url});
    $uri->path("affiliate/v3/" . $target);
    $ur
->as_string);
    croak("$target API acess failed...") unless $res->{success};

    return decode_json($res->{content});
}


sub _suggestion_site_param {
    if ( scalar @_ == 2){
        return _set_
Mojolicious-Plugin-Pubsub ( C/CO/COFFEE/Mojolicious-Plugin-Pubsub-0.006.tar.gz, COFFEE, 2018; MetaCPAN )
Mojolicious-Plugin-Pubsub/lib/Mojolicious/Plugin/Pubsub.pm ( view source; MetaCPAN )
RSION = '0.006';
use Mojo::Base 'Mojolicious::Plugin';

use Mojo::IOLoop;
use Mojo::JSON qw( decode_json encode_json );
use Mojo::Util qw( b64_decode b64_encode deprecated );
use IO::Socket::UNIX;

my
->helper(
    'pubsub.publish' => sub {
      my $self = shift;
      my $msg = b64_encode(encode_json([@_]), "");

      _send($msg . "\n");

      return $self;
    }
  );

  $app->helper(
    'pubs
g) {
          if ($msg =~ s/^(.+)\n//) {
            my $b64 = $1;
            my $args = decode_json(b64_decode($b64));
            foreach my $subscriber (@{ $conf->{subs} }) {
              $subsc
APISchema ( A/AK/AKIYM/APISchema-1.37.tar.gz, AKIYM, 2018; MetaCPAN )
APISchema/lib/APISchema/Generator/Markdown/ExampleFormatter.pm ( view source; MetaCPAN )
ter;
use 5.014;
use strict;
use warnings;

# lib
use APISchema::Generator::Markdown::Formatter qw(json);

# cpan
use URI::Escape qw(uri_escape_utf8);
use Class::Accessor::Lite (
    new => 1,
    ro =
e = $self->example($resource);

    return '' unless defined $example;

    return ref $example ? json($example) : $example;
}

sub header_and_body {
    my ($self) = @_;
    join("\n", grep { defined
Mojolicious-Command-nopaste ( J/JB/JBERGER/Mojolicious-Command-nopaste-0.12.tar.gz, JBERGER, 2018; MetaCPAN )
Mojolicious-Command-nopaste/lib/Mojolicious/Command/nopaste/Service/debian.pm ( view source; MetaCPAN )
s+django" => 1,
  "js+erb" => 1,
  "js+genshitext" => 1,
  "js+mako" => 1,
  "js+myghty" => 1,
  "json" => 1,
  "jsp" => 1,
  "js+php" => 1,
  "js+smarty" => 1,
  "kotlin" => 1,
  "lhs" => 1,
  "light
Padre-Plugin-JSONUtilities ( A/AD/ADAMDH/Padre-Plugin-JSONUtilities-0.10.tar.gz, ADAMDH, 2018; MetaCPAN )
Padre-Plugin-JSONUtilities/lib/Padre/Plugin/JSONUtilities.pm ( view source; MetaCPAN )
ad1 NAME

Padre::Plugin::JSONUtilities - Adds buttons to beautify or compress json.

=cut

=head1 SYNOPSIS

Padre::Plugin::JSONUtilities is designed to compress or expand JSON. Enough said. Also to ca
nonically sort, if you want.

=cut

package Padre::Plugin::JSONUtilities;

use 5.010;
use strict;
use warnings;
use utf8;
use Padre::Plugin();
use Padre::Role::Task;

our $VERSION = '0.10';
use base q
DREN => qw{Padre::Plugin::JSONUtilities};

sub plugin_name { return Wx::gettext('JSON Utility Plugin'); } 

use Padre::Wx::Dialog::OpenResource;
use Padre::Wx    ();
use JSON;



sub plugin_enable {
	
Finance-GDAX-API ( S/SE/SEATEK/Finance-GDAX-API-0.09.tar.gz, SEATEK, 2018; MetaCPAN )
Finance-GDAX-API/lib/Finance/GDAX/API.pm ( view source; MetaCPAN )
package Finance::GDAX::API;
our $VERSION = '0.09';
use 5.20.0;
use warnings;
use JSON;
use Moose;
use REST::Client;
use MIME::Base64;
use Digest::SHA qw(hmac_sha256_base64);
use Finance::GDAX::API::UR
Int',
			writer => '_set_response_code',
    );
has '_body_json' => (is  => 'ro',
		     isa => 'Maybe[Str]',
		     writer => '_set_body_json',
    );

sub send {
    my $self = shift;
    my $client
CESS-PASSPHRASE', $self->passphrase);
    $client->addHeader('Content-Type',         'application/json');

    my $method = $self->method;
    $client->setTimeout($self->timeout) if $self->timeout;
  
APISchema ( A/AK/AKIYM/APISchema-1.37.tar.gz, AKIYM, 2018; MetaCPAN )
APISchema/lib/APISchema/Generator/Markdown/Formatter.pm ( view source; MetaCPAN )
pe json pretty_json code restriction desc anchor method methods content_type http_status http_status_code);

# cpan
use HTTP::Status qw(status_message);
use URI::Escape qw(uri_escape_utf8);
use JSON::
XS ();
my $JSON = JSON::XS->new->canonical(1);

use constant +{
    RESTRICTIONS => [qw(required max_items min_items max_length min_length maximum minimum pattern)],
    SHORT_DESCRIPTION_LENGTH => 10
in $bar, map { code($_) } @{$type} if ref $type eq 'ARRAY';
    }

    return 'undefined';
}

sub json ($) {
    my $x = shift;
    if (ref $x eq 'SCALAR') {
        if ($$x eq 1) {
            $x = '
APISchema ( A/AK/AKIYM/APISchema-1.37.tar.gz, AKIYM, 2018; MetaCPAN )
APISchema/lib/APISchema/Validator/Decoder.pm ( view source; MetaCPAN )
 cpan
use JSON::XS qw(decode_json);
use URL::Encode qw(url_params_mixed);
use Class::Accessor::Lite ( new => 1 );

sub perl {
    my ($self, $body) = @_;
    return $body;
}

my $JSON = JSON::XS->new-
>utf8;
sub json {
    my ($self, $body) = @_;
    return $JSON->decode($body);
}

sub url_parameter {
    my ($self, $body) = @_;
    return undef unless defined $body;
    return url_params_mixed($bo
APISchema ( A/AK/AKIYM/APISchema-1.37.tar.gz, AKIYM, 2018; MetaCPAN )
APISchema/lib/APISchema/Generator/Markdown.pm ( view source; MetaCPAN )
 ?>"></a> `<?= $resource->title ?>` : <?= type($resource->definition) ?>
```javascript
<?= pretty_json $r->example($resource->definition) ?>
```

?= $resource->definition->{description} || ''

#### Pr
RDF-LinkedData ( K/KJ/KJETILK/RDF-LinkedData-1.940.tar.gz, KJETILK, 2018; MetaCPAN )
RDF-LinkedData/lib/Plack/App/RDF/LinkedData.pm ( view source; MetaCPAN )
uration

To configure the system for production use, create a configuration
file C<rdf_linkeddata.json> that looks something like:

  {
        "base_uri"  : "http://localhost:3000/",
        "store" 
gments" }
  }

In your shell set

  export RDF_LINKEDDATA_CONFIG=/to/where/you/put/rdf_linkeddata.json

Then, figure out where your install method installed the
<linked_data.psgi>, script, e.g. by usi
the L<RDF::Generator::Void> for more details about
what can be set, and the C<rdf_linkeddata_void.json> test config in
the distribution for example.

By adding an C<add_void> config key, you can make 
Mojolicious-Command-nopaste ( J/JB/JBERGER/Mojolicious-Command-nopaste-0.12.tar.gz, JBERGER, 2018; MetaCPAN )
Mojolicious-Command-nopaste/lib/Mojolicious/Command/nopaste/Service/fpaste.pm ( view source; MetaCPAN )
elf->ua->post(
    'http://fpaste.org',
    form => {
      api_submit => 1,
      mode       => 'json',
      paste_data => $self->text,
      paste_lang => $lang,
      ($self->private ? (paste_priv
>res->message;
    say $tx->res->body;
    exit 1;
  }

  my $url = Mojo::URL->new('http://fpaste.org/');

  push @{$url->path->parts}, @{$tx->res->json->{result}}{qw(id hash)};

  return $url;
}

1;
Mojolicious-Command-nopaste ( J/JB/JBERGER/Mojolicious-Command-nopaste-0.12.tar.gz, JBERGER, 2018; MetaCPAN )
Mojolicious-Command-nopaste/lib/Mojolicious/Command/nopaste/Service/gist.pm ( view source; MetaCPAN )
ept => 'application/vnd.github.v3+json',
      Authorization => "token $token",
      'User-Agent' => 'Mojolicious-Command-nopaste (author: jberger)',
    },
    json => $data,
  );
  $ua->start($tx);
ed, code $error->{code}: $error->{message}";
      say $tx->res->body;
    } else {
      say "Connection error: $error->{message}";
    }
    exit 1;
  }

  return $tx->res->json->{html_url};
}

1;

WWW-WWWJDIC ( B/BK/BKB/WWW-WWWJDIC-0.005.tar.gz, BKB, 2018; MetaCPAN )
WWW-WWWJDIC/lib/WWW/WWWJDIC.pm ( view source; MetaCPAN )
ode qw/encode decode/;
use utf8;
use URI::Escape;
use JSON::Parse 'json_file_to_perl';

my $jfile = __FILE__;
$jfile =~ s/\.pm/.json/;
my $j = json_file_to_perl ($jfile);

my %mirrors = %{$j->{mirrors
Hush ( L/LE/LETO/Hush-0.03.tar.gz, LETO, 2018; MetaCPAN )
Hush/lib/Hush/Memo.pm ( view source; MetaCPAN )
rnings;
use Try::Tiny;
use Hush::Util qw/barf/;
use Hush::Logger qw/debug/;
use Data::Dumper;
use JSON;

sub new {
    my ($rpc,$options) = @_;
    my $memo           = {
        txid   => $options->{
Hush ( L/LE/LETO/Hush-0.03.tar.gz, LETO, 2018; MetaCPAN )
Hush/lib/Hush/List.pm ( view source; MetaCPAN )
File::Slurp;
use Hush::Memo;
use Hush::Logger qw/debug/;
use Hush::Contact;
use Data::Dumper;
use JSON;

=head1 NAME

Hush::List - HushList Protocol Reference Implementation

=head1 DESCRIPTION

HushL
_NAME/members.txt  - list member zaddrs, one per line
    # ~/.hush/list/LIST_NAME/list.json - list data, in JSON
    # ~/.hush/list/LIST_NAME/list.png  - user-specified image for list
    return $sel
eys to appease the z_sendmany gods
    my $list_addrs = { };

    # This must be a string to make JSON elder gods happy
    my $amount  = "0.00"; # amount is hidden in (z,z) xtns, so it does not ident
APISchema ( A/AK/AKIYM/APISchema-1.37.tar.gz, AKIYM, 2018; MetaCPAN )
APISchema/lib/Plack/App/APISchema/MockServer.pm ( view source; MetaCPAN )
Plack::Util::Accessor qw(schema);
use Plack::Request;
use Encode qw(encode_utf8);

use APISchema::JSON;

use APISchema::Generator::Router::Simple;
use APISchema::Generator::Markdown::ResourceResolver;

    # TODO: format body with encoding
    return [$default_code, ['Content-Type' => 'application/json; charset=utf-8'], [encode_utf8($formatter->body)]];
}

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

    ret
Finance-GDAX-API ( S/SE/SEATEK/Finance-GDAX-API-0.09.tar.gz, SEATEK, 2018; MetaCPAN )
Finance-GDAX-API/lib/Finance/GDAX/API/Quote.pm ( view source; MetaCPAN )
ackage Finance::GDAX::API::Quote;
our $VERSION = '0.01';
use 5.20.0;
use warnings;
use Moose;
use JSON;
use REST::Client;
use Finance::GDAX::API::URL;
use namespace::autoclean;


=head1 NAME

Finance:
');
    
    my $client = REST::Client->new;
    $client->GET($url->get);

    my $json = JSON->new;
    return $json->decode($client->responseContent);
}

__PACKAGE__->meta->make_immutable;
1;


=hea

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