Group
Extension

Matches 35358

Lemonldap-NG-Common ( C/CO/COUDOT/Lemonldap-NG-Common-2.22.0.tar.gz, COUDOT, 2025; MetaCPAN )
Lemonldap-NG-Common/lib/Lemonldap/NG/Common/Conf/Backends/CDBI.pm ( view source; MetaCPAN )
package Lemonldap::NG::Common::Conf::Backends::CDBI;

use strict;
use utf8;
use JSON;
use Lemonldap::NG::Common::Conf::Backends::_DBI;

our $VERSION = '2.22.0';
our @ISA     = qw(Lemonldap::NG::Common
 my $cfgNum = $fields->{cfgNum};
    my $req;
    my $lastCfg = $self->lastCfg;

    $fields = to_json($fields);

    my $query =
      $lastCfg == $cfgNum
      ? "UPDATE $self->{dbiTable} SET data=?
;
        return 0;
    }
    my $r;
    if ( $row->[0] =~ /^\s*\{/s ) {
        eval { $r = from_json( $row->[0], { allow_nonref => 1 } ); };
    }
    else {    # Old format
        require Storable
Lemonldap-NG-Common ( C/CO/COUDOT/Lemonldap-NG-Common-2.22.0.tar.gz, COUDOT, 2025; MetaCPAN )
Lemonldap-NG-Common/lib/Lemonldap/NG/Common/PSGI/Request.pm ( view source; MetaCPAN )
package Lemonldap::NG::Common::PSGI::Request;

use strict;
use Mouse;
use JSON;
use Plack::Request;
use URI::Escape;

our $VERSION = '2.19.0';

our @ISA = ('Plack::Request');

#       http          :/
->{$k} = $v;
}

sub wantJSON {
    return 1
      if ( defined $_[0]->accept
        and $_[0]->accept =~ m#(?:application|text)/json# );
    return 0;
}

# JSON parser
sub jsonBodyToObj {
    my $sel
f = shift;
    return $self->{json_body} if ( $self->{json_body} );
    unless ( $self->content_type =~ /application\/json/ ) {
        $self->error('Data is not JSON');
        return undef;
    }
  
Lemonldap-NG-Common ( C/CO/COUDOT/Lemonldap-NG-Common-2.22.0.tar.gz, COUDOT, 2025; MetaCPAN )
Lemonldap-NG-Common/lib/Lemonldap/NG/Common/Conf/Wrapper.pm ( view source; MetaCPAN )
package Lemonldap::NG::Common::Conf::Wrapper;

use strict;
use JSON;

our $VERSION = '2.0.3';

sub TIEHASH {
    my ( $class, $conf, $overrides ) = @_;
    my %h = %$overrides;
    foreach ( keys %h )
 {
        if ( $h{$_} =~ /^[\[\{]/ ) {
            my $tmp = eval { JSON::from_json( $h{$_} ) };
            if ($@) {
                print STDERR "Wrapper: unable to compile $_ key, skipping\n";
  
Lemonldap-NG-Common ( C/CO/COUDOT/Lemonldap-NG-Common-2.22.0.tar.gz, COUDOT, 2025; MetaCPAN )
Lemonldap-NG-Common/lib/Lemonldap/NG/Common/Cli.pm ( view source; MetaCPAN )
::Common::Cli;

use strict;
use JSON;
use Mouse;
use Lemonldap::NG::Common::Conf;
use Lemonldap::NG::Common::EmailTransport;

use constant booleanOptions => qr/^(?:json)$/;

our $VERSION = '2.22.0';

$res);
        return $res;
    },
);

has cfgNum => (
    is  => 'rw',
    isa => 'Int',
);

has json => ( is => 'rw' );

sub info {
    my ($self) = @_;
    my $conf =
      $self->confAccess->getCo
->{cfgDate}     ||= 0;
    $conf->{cfgLog}      ||= "No log provided";
    if ( $self->json ) {
        print JSON->new->pretty->allow_nonref->encode( {
                num      => $conf->{cfgNum},
  
Lemonldap-NG-Common ( C/CO/COUDOT/Lemonldap-NG-Common-2.22.0.tar.gz, COUDOT, 2025; MetaCPAN )
Lemonldap-NG-Common/lib/Lemonldap/NG/Common/JWT.pm ( view source; MetaCPAN )
Header getJWTPayload getJWTSignature getJWTSignedData)
  ;    # symbols to export on request

use JSON;
use MIME::Base64 qw/encode_base64 decode_base64/;

our $VERSION = '2.21.0';

# Gets the Access T
 json whether or not to decode as JSON
# @return JSON string
sub getJWTPart {
    my ( $jwt, $part ) = @_;
    my @jwt_parts = split( /\./, $jwt );
    return undef unless @jwt_parts > 1;
    my $json
_hash;
    eval { $json_hash = from_json( decode_base64url( $jwt_parts[$part] ) ); };
    return undef if ($@);
    return $json_hash;
}

# Return the JWT data that has to be signed by the OP
# @param
Lemonldap-NG-Common ( C/CO/COUDOT/Lemonldap-NG-Common-2.22.0.tar.gz, COUDOT, 2025; MetaCPAN )
Lemonldap-NG-Common/lib/Lemonldap/NG/Common/PSGI.pm ( view source; MetaCPAN )
se Mouse;
use HTTP::Status;
use JSON;
use Lemonldap::NG::Common::PSGI::Constants;
use Lemonldap::NG::Common::PSGI::Request;

our $VERSION = '2.22.0';

our $_json = JSON->new->allow_nonref;

# PROPERTI
ses methods
sub sendJSONresponse {
    my ( $self, $req, $j, %args ) = @_;
    $args{code}    ||= 200;
    $args{headers} ||= [ $req->spliceHdrs ];
    my $type = 'application/json; charset=utf-8';
  
args{pretty} ) {

                # This avoids changing the settings of the $_json reference
                $j = to_json(
                    $j,
                    {
                        allow_
Lemonldap-NG-Common ( C/CO/COUDOT/Lemonldap-NG-Common-2.22.0.tar.gz, COUDOT, 2025; MetaCPAN )
Lemonldap-NG-Common/lib/Lemonldap/NG/Common/Conf/RESTServer.pm ( view source; MetaCPAN )
package Lemonldap::NG::Common::Conf::RESTServer;

use strict;
use JSON 'from_json';
use Mouse;
use Lemonldap::NG::Common::Conf::Constants;
use Lemonldap::NG::Common::Conf::ReConstants;

our $VERSION =
ontent (for SAML/OIDC metadata)

# 31 - Complex subnodes
#      ----------------

## @method PSGI-JSON-response complexNodesRoot($req, $query, $tpl)
# Respond to root requests for virtual hosts and SA
m $query Configuration root key
#@param $tpl Javascript template to use (see JS/JSON generator script)
#@return PSGI JSON response
sub complexNodesRoot {
    my ( $self, $req, $query, $tpl ) = @_;
   
Lemonldap-NG-Common ( C/CO/COUDOT/Lemonldap-NG-Common-2.22.0.tar.gz, COUDOT, 2025; MetaCPAN )
Lemonldap-NG-Common/lib/Lemonldap/NG/Common/Conf/Serializer.pm ( view source; MetaCPAN )
package Lemonldap::NG::Common::Conf::Serializer;

use strict;
use utf8;
use Encode;
use JSON;
use Lemonldap::NG::Common::Conf::Constants;

our $VERSION = '2.0.12';

BEGIN {
    *Lemonldap::NG::Common:
y $v = $conf->{$k};

        # 1.Hash ref
        if ( ref($v) ) {
            $fields->{$k} = to_json($v);
        }
        else {
            $fields->{$k} = $v;
        }
    }

    return $fields
            }
            $conf->{$k} = (
                $v =~ /./
                ? eval { from_json( $v, { allow_nonref => 1 } ) }
                : {}
            );
            if ($@) {
        
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/FeedItemSetLinkService/MutateFeedItemSetLinksRequest.pm ( view source; MetaCPAN )
y   => $args->{validateOnly}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/CustomizerAttributeService/MutateCustomizerAttributeResult.pm ( view source; MetaCPAN )
    => $args->{resourceName}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/CustomerUserAccessService/MutateCustomerUserAccessResult.pm ( view source; MetaCPAN )
ame => $args->{resourceName}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywordResult.pm ( view source; MetaCPAN )
ame => $args->{resourceName}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/CustomerSkAdNetworkConversionValueSchemaService/CustomerSkAdNetworkConversionValueSchemaOperation.pm ( view source; MetaCPAN )
= {update => $args->{update}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/KeywordPlanAdGroupKeywordService/KeywordPlanAdGroupKeywordOperation.pm ( view source; MetaCPAN )
eMask => $args->{updateMask}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/CustomerSkAdNetworkConversionValueSchemaService/MutateCustomerSkAdNetworkConversionValueSchemaResult.pm ( view source; MetaCPAN )
ame => $args->{resourceName}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywordsResponse.pm ( view source; MetaCPAN )
         => $args->{results}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/CustomerSkAdNetworkConversionValueSchemaService/MutateCustomerSkAdNetworkConversionValueSchemaResponse.pm ( view source; MetaCPAN )
= {result => $args->{result}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/CustomerSkAdNetworkConversionValueSchemaService/MutateCustomerSkAdNetworkConversionValueSchemaRequest.pm ( view source; MetaCPAN )
nly => $args->{validateOnly}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/CustomerAssetSetService/CustomerAssetSetOperation.pm ( view source; MetaCPAN )
   remove => $args->{remove}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;
Google-Ads-GoogleAds-Client ( C/CH/CHEVALIER/Google-Ads-GoogleAds-Client-29.0.1.tar.gz, CHEVALIER, 2025; MetaCPAN )
Google-Ads-GoogleAds-Client/lib/Google/Ads/GoogleAds/V14/Services/AdGroupCriterionLabelService/AdGroupCriterionLabelOperation.pm ( view source; MetaCPAN )
   remove => $args->{remove}};

  # Delete the unassigned fields in this object for a more concise JSON payload
  remove_unassigned_fields($self, $args);

  bless $self, $class;
  return $self;
}

1;

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