Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.119.117.236
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : Syck.pm
package Data::Serializer::JSON::Syck;
BEGIN { @Data::Serializer::JSON::Syck::ISA = qw(Data::Serializer) }

use warnings;
use strict;
use JSON::Syck;
use vars qw($VERSION @ISA);

$VERSION = '0.02';

sub serialize {
    return JSON::Syck::Dump($_[1]);
}

sub deserialize {
    return JSON::Syck::Load($_[1]);
}

1;
__END__

=head1 NAME

Data::Serializer::JSON::Syck - Creates bridge between Data::Serializer and JSON::Syck

=head1 SYNOPSIS

  use Data::Serializer::JSON::Syck;

=head1 DESCRIPTION

Module is used internally to Data::Serializer


=over 4

=item B<serialize> - Wrapper to normalize serializer method name

=item B<deserialize> - Wrapper to normalize deserializer method name

=back

=head1 AUTHOR

Naoya Ito <naoya@bloghackers.net>

=head1 COPYRIGHT

  This program is free software; you can redistribute it
  and/or modify it under the same terms as Perl itself.

=head1 SEE ALSO

perl(1), Data::Serializer(3), JSON::Syck(3).

=cut

© 2025 GrazzMean