Group
Extension

Matches 35358

Webservice-OVH ( S/SF/SFPAJEND/Webservice-OVH-0.48.tar.gz, SFPAJEND, 2023; MetaCPAN )
Webservice-OVH/lib/Webservice/OVH/Order/Email/Domain.pm ( view source; MetaCPAN )


=head1 SYNOPSIS

    use Webservice::OVH;
    
    my $ovh = Webservice::OVH->new_from_json("credentials.json");
    
    my $available_services = $ovh->order->email->domain->available_services;

=h
MooseX-Storage-Format-JSONpm ( R/RJ/RJBS/MooseX-Storage-Format-JSONpm-0.093094.tar.gz, RJBS, 2023; MetaCPAN )
MooseX-Storage-Format-JSONpm/lib/MooseX/Storage/Format/JSONpm.pm ( view source; MetaCPAN )
package MooseX::Storage::Format::JSONpm 0.093094;
use MooseX::Role::Parameterized;
# ABSTRACT: a format role for MooseX::Storage using JSON.pm

#pod =head1 SYNOPSIS
#pod
#pod   package Point;
#pod   u
se Moose;
#pod   use MooseX::Storage;
#pod
#pod   with Storage(format => 'JSONpm');
#pod
#pod   has 'x' => (is => 'rw', isa => 'Int');
#pod   has 'y' => (is => 'rw', isa => 'Int');
#pod
#pod   1;
#pod
lass into a JSON string
#pod   my $json = $p->freeze(); # { "__CLASS__" : "Point", "x" : 10, "y" : 10 }
#pod
#pod   # unpack the JSON string into an object
#pod   my $p2 = Point->thaw($json);
#pod
#po
Sah-Schemas-ArrayData ( P/PE/PERLANCAR/Sah-Schemas-ArrayData-0.004.tar.gz, PERLANCAR, 2022; MetaCPAN )
Sah-Schemas-ArrayData/lib/Sah/SchemaR/perl/arraydata/modname_with_optional_args.pm ( view source; MetaCPAN )
 '0.004'; # VERSION

our $rschema = do{my$var={base=>"any",clsets_after_base=>[{of=>[["array_from_json",{elems=>[["str",{match=>"\\A(?:[A-Za-z_][A-Za-z_0-9]*(::[A-Za-z_0-9]+)*(?:=.*)?)\\z","x.completi
Mixin-Historian ( R/RJ/RJBS/Mixin-Historian-0.102001.tar.gz, RJBS, 2023; MetaCPAN )
Mixin-Historian/lib/Mixin/Historian.pm ( view source; MetaCPAN )
history> are mapped to database
#pod columns.  The entire argument is also stored in one field as JSON, and a few
#pod other attributes are always required (like C<by_whom>) and some are added just
#p
<add_history> are mapped to database
columns.  The entire argument is also stored in one field as JSON, and a few
other attributes are always required (like C<by_whom>) and some are added just
in time
Test-MinimumVersion ( R/RJ/RJBS/Test-MinimumVersion-0.101083.tar.gz, RJBS, 2023; MetaCPAN )
Test-MinimumVersion/lib/Test/MinimumVersion.pm ( view source; MetaCPAN )
um_version_from_metayml_ok
  all_minimum_version_from_metajson_ok
  all_minimum_version_from_mymetayml_ok
  all_minimum_version_from_mymetajson_ok
);

sub import {
  my($self) = shift;
  my $pack = ca
rsion_from_metajson_ok
#pod
#pod   all_minimum_version_from_metajson_ok(\%arg);
#pod
#pod This routine checks F<META.json> for an entry in F<requires> for F<perl>.  If
#pod no META.json file or no per
een
#pod called with that version.
#pod
#pod =cut

sub all_minimum_version_from_metajson_ok { __from_meta('META.json', @_); }

#pod =func all_minimum_version_from_mymetayml_ok
#pod
#pod   all_minimum_
Task-BeLike-RJBS ( R/RJ/RJBS/Task-BeLike-RJBS-20221231.000.tar.gz, RJBS, 2023; MetaCPAN )
Task-BeLike-RJBS/lib/Task/BeLike/RJBS.pm ( view source; MetaCPAN )
ment> 3.22

Version 3.22 required because: has proper XML escaping

=head3 L<IO::Async>

=head3 L<JSON::MaybeXS>

=head3 L<List::AllUtils>

=head3 L<Log::Dispatchouli> 2.000

Version 2.000 required be
Throwable-X ( R/RJ/RJBS/Throwable-X-0.008.tar.gz, RJBS, 2023; MetaCPAN )
Throwable-X/lib/Throwable/X.pm ( view source; MetaCPAN )
use in another program, for example in a web
#pod browser receiving a serialized Throwable::X via JSON in response to an
#pod XMLHTTPRequest.
#pod
#pod   {
#pod     ident   => $err->ident,
#pod     me
 and use in another program, for example in a web
browser receiving a serialized Throwable::X via JSON in response to an
XMLHTTPRequest.

  {
    ident   => $err->ident,
    message => $err->message_f
WebService-BitFlyer ( B/BA/BAYASHI/WebService-BitFlyer-0.02.tar.gz, BAYASHI, 2023; MetaCPAN )
WebService-BitFlyer/lib/WebService/BitFlyer.pm ( view source; MetaCPAN )
 JSON qw//;
use Class::Accessor::Lite (
    ro  => [qw/
        api_base
        access_key
        secret_key
    /],
    rw  => [qw/
        client
        sign
        timestamp
        decode_json
     croak "require 'access_key' and 'secret_key'.";
    }

    my $self = bless {
        decode_json => 0,
        api_base    => 'https://api.bitflyer.jp',
        %args,
    }, $class;

    $self-
__ . "/$VERSION",
            default_headers => {
                'Content-Type' => 'application/json',
                'ACCESS-KEY'   => $self->access_key,
            },
            timeout => 15,
Mojo-Netdata ( J/JH/JHTHORSEN/Mojo-Netdata-0.04.tar.gz, JHTHORSEN, 2022; MetaCPAN )
Mojo-Netdata/lib/Mojo/Netdata/Collector/HTTP.pm ( view source; MetaCPAN )
  my @data;
  push @data, $headers->to_hash(1);
  push @data,
      exists $params->{json} ? (json => $params->{json})
    : exists $params->{form} ? (form => $params->{form})
    : exists $params->{b
'bar', # Default: "example.com"

        # Only one of these can be present
        json   => {...},           # JSON HTTP body
        form   => {key => $value}, # Form data
        body   => '...', 
JSON-Typist ( R/RJ/RJBS/JSON-Typist-0.008.tar.gz, RJBS, 2023; MetaCPAN )
JSON-Typist/lib/Test/Deep/JType.pm ( view source; MetaCPAN )
warnings;
package Test::Deep::JType 0.008;
# ABSTRACT: Test::Deep helpers for JSON::Typist data

use JSON::PP ();
use JSON::Typist ();
use Test::Deep 1.126 (); # LeafWrapper, as_test_deep_cmp

use Exp
y for testing data structures.
#pod Test::Deep::JType extends it with routines for testing
#pod L<JSON::Typist>-annotated data.
#pod
#pod By default, Test::Deep's C<cmp_deeply> will interpret plain nu
eans that this test
#pod won't work:
#pod
#pod   my $json  = q[ { "key": "value" } ];
#pod   my $data  = decode_json($json);
#pod   my $typed = JSON::Typist->new->apply_types( $data );
#pod
#pod   cmp
Devel-TraceUse ( B/BO/BOOK/Devel-TraceUse-2.097.tar.gz, BOOK, 2023; MetaCPAN )
Devel-TraceUse/lib/Devel/TraceUse.pm ( view source; MetaCPAN )
e that look at the declared dependencies in distributions'
metadata files (C<META.yml> and C<META.json>).

=back

=head2 Introspectors

L<App::FatPacker::Trace> and L<Devel::Dependencies>
just gives a
XML-Loy ( A/AK/AKRON/XML-Loy-0.52.tar.gz, AKRON, 2023; MetaCPAN )
XML-Loy/lib/XML/Loy/XRD.pm ( view source; MetaCPAN )
package XML::Loy::XRD;
use strict;
use warnings;

use Mojo::JSON qw/encode_json decode_json/;
use Mojo::Util 'quote';
use Carp qw/carp/;
use XML::Loy::Date::RFC3339;

use XML::Loy with => (
  mime    
ert to xml
sub _to_xml {
  my $xrd = shift;

  # Parse json document
  my $jrd;

  # There may be a parsing error
  eval {
    $jrd = decode_json $_[0];
  } or carp $@;

  # Itterate over all XRD elem
if ($key eq 'titles') {
      _to_xml_titles($xrd, $jrd->{$key});
    };
  };
};


# Convert From JSON to XML
sub _to_xml_titles {
  my ($node, $hash) = @_;
  foreach (keys %$hash) {

    # Default
  
DBIx-Locker ( R/RJ/RJBS/DBIx-Locker-1.103.tar.gz, RJBS, 2023; MetaCPAN )
DBIx-Locker/lib/DBIx/Locker.pm ( view source; MetaCPAN )
might not be totally insane

use Carp ();
use DBI;
use Data::GUID ();
use DBIx::Locker::Lock;
use JSON 2 ();
use Sys::Hostname ();

#pod =head1 DESCRIPTION
#pod
#pod ...and a B<warning>.
#pod
#pod DBI
#pod
#pod This method attempts to return a new DBIx::Locker::Lock.
#pod
#pod =cut

my $JSON;
BEGIN { $JSON = JSON->new->canonical(1)->space_after(1); }

sub lock {
  my ($self, $lockstring, $arg) = @_
lockstring,
    $self->_time_to_string,
    $self->_time_to_string([ localtime($expires) ]),
    $JSON->encode($locked_by),
  );

  die(
    "could not lock resource <$lockstring>" . (
      $dbh->err
WebService-DS-SOP-Auth-V1_1 ( D/DS/DSSYSTEM/WebService-DS-SOP-Auth-V1_1-0.05.tar.gz, DSSYSTEM, 2023; MetaCPAN )
WebService-DS-SOP-Auth-V1_1/lib/WebService/DS/SOP/Auth/V1_1/Util.pm ( view source; MetaCPAN )
warnings;
use Carp ();
use Digest::SHA qw(hmac_sha256_hex);
use Exporter qw(import);
use JSON::XS qw(decode_json);

our @EXPORT_OK = qw( create_signature is_signature_valid );

our $SIG_VALID_FOR_SEC 

    $time ||= time;

    my $req_time = ref($params) ? $params->{time}
                 : decode_json($params)->{time};

    return if not $req_time;
    return if $req_time < ($time - $SIG_VALID_FOR
WebService-DS-SOP-Auth-V1_1 ( D/DS/DSSYSTEM/WebService-DS-SOP-Auth-V1_1-0.05.tar.gz, DSSYSTEM, 2023; MetaCPAN )
WebService-DS-SOP-Auth-V1_1/lib/WebService/DS/SOP/Auth/V1_1.pm ( view source; MetaCPAN )
bService::DS::SOP::Auth::V1_1::Request::POST_JSON;
use WebService::DS::SOP::Auth::V1_1::Request::PUT;
use WebService::DS::SOP::Auth::V1_1::Request::PUT_JSON;
use WebService::DS::SOP::Auth::V1_1::Util 
UserAgent->new->request($req);

When making a POST request with JSON data to API:

    my $req = $auth->create_request(
        POST_JSON => 'http://<API_HOST>/path/to/endpoint' => {
            hoge 
w-form-urlencoded>.

=item C<POST_JSON>

For HTTP POST request to SOP endpoint with signature as request header
C<X-Sop-Sig> of request content type C<application/json>.

=item C<PUT>

For HTTP PUT re
XML-Loy ( A/AK/AKRON/XML-Loy-0.52.tar.gz, AKRON, 2023; MetaCPAN )
XML-Loy/lib/XML/Loy.pm ( view source; MetaCPAN )
t Mojolicious version > 7.77
#     - "ns|*" namespace selector
#
#  - Add ->clone
#    (Maybe via JSON serialisation of ->tree or using Storable or Dumper)
#
#   Maybe necessary: *AUTOLOAD = \&XML::Lo
Email-MIME-Kit-Renderer-TT ( R/RJ/RJBS/Email-MIME-Kit-Renderer-TT-1.003.tar.gz, RJBS, 2023; MetaCPAN )
Email-MIME-Kit-Renderer-TT/lib/Email/MIME/Kit/Renderer/TT.pm ( view source; MetaCPAN )
e parts
#pod using L<Template Toolkit 2|Template>.  When specifying a renderer in
#pod F<manifest.json>, you might write something like this:
#pod
#pod   { ..., "renderer": "TT" }
#pod
#pod Or, to sup
ers message parts
using L<Template Toolkit 2|Template>.  When specifying a renderer in
F<manifest.json>, you might write something like this:

  { ..., "renderer": "TT" }

Or, to supply options:

  {
Email-MIME-Kit-Assembler-Markdown ( R/RJ/RJBS/Email-MIME-Kit-Assembler-Markdown-0.100009.tar.gz, RJBS, 2023; MetaCPAN )
Email-MIME-Kit-Assembler-Markdown/lib/Email/MIME/Kit/Assembler/Markdown.pm ( view source; MetaCPAN )
s ();

#pod =for Pod::Coverage assemble BUILD
#pod
#pod =head1 SYNOPSIS
#pod
#pod In your mkit's (JSON, here) manifest:
#pod
#pod   {
#pod     "renderer" : "TT",
#pod     "assembler": [
#pod       "Ma
 is  => 'ro',
  isa => 'Str',
);

has munge_signature => (
  is  => 'ro',
  # XXX Removed because JSON booly objects (and YAML?) aren't consistently
  # compatible with Moose's Bool type. -- rjbs, 201
=> 'Bool',
  default => 0,
);

has render_wrapper => (
  is      => 'ro',
  # XXX Removed because JSON booly objects (and YAML?) aren't consistently
  # compatible with Moose's Bool type. -- rjbs, 201
XML-Loy ( A/AK/AKRON/XML-Loy-0.52.tar.gz, AKRON, 2023; MetaCPAN )
XML-Loy/lib/XML/Loy/ActivityStreams.pm ( view source; MetaCPAN )
fix    => 'activity',
  namespace => 'http://activitystrea.ms/schema/1.0/'
);

# Todo: support to_json
# Todo: verbs and object-types may need namespaces
# Todo: Support ActivityStreams 2 as a anamesp


L<Mojolicious>.


=head1 LIMITATIONS

L<XML::Loy::ActivityStreams> has currently no support for
JSON serialization, neither on reading nor writing.


=head1 AVAILABILITY

  https://github.com/Akron/
Mojo-Netdata ( J/JH/JHTHORSEN/Mojo-Netdata-0.04.tar.gz, JHTHORSEN, 2022; MetaCPAN )
Mojo-Netdata/lib/Mojo/Netdata/Util.pm ( view source; MetaCPAN )
-strict, -signatures;

use overload ();
use Exporter qw(import);
use Mojo::File;
use Mojo::JSON qw(encode_json);

our @EXPORT_OK = qw(logf safe_id);
our $STDERR    = \*STDERR;           # useful for t
evel, $module_name,
    map { overload::Method($_, q("")) ? "$_" : !defined $_ || ref $_ ? encode_json $_ : $_ } @args;
  return 1;
}

sub safe_id ($str) {
  $str =~ s![^A-Za-z0-9]!_!g;
  $str =~ s!_+
, "fatal". Any references and undefined values in C<@args> will be
serialized using L<Mojo::JSON/encode_json>.

=head2 safe_id

  $str = safe_id $str;

Turns an "unsafe" string into a string you can u

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