Group
Extension

Matches 3

GX ( J/JA/JAU/GX/GX-0.2000_01.tar.gz, JAU, 2011; MetaCPAN )
GX/lib/GX/Serializer/JSON.pm ( view source; MetaCPAN )
zer/JSON.pm
# ----------------------------------------------------------------------------------------------------------------------

package GX::Serializer::JSON;

use GX::Exception ();

use JSON ();
----

sub serialize {

    my $self = shift;
    my $data = shift;

    my $string = eval { JSON::encode_json( $data ) };

    if ( $@ ) {
        GX::Exception->complain(
            message      => 


sub unserialize {

    my $self   = shift;
    my $string = shift;

    my $data = eval { JSON::decode_json( $string ) };

    if ( $@ ) {
        GX::Exception->complain(
            message      =
GX ( J/JA/JAU/GX/GX-0.2000_01.tar.gz, JAU, 2011; MetaCPAN )
GX/lib/GX/MIME/Util.pm ( view source; MetaCPAN )
      # RFC 2045, RFC 2046
    'js'    => 'text/javascript',           # RFC 4329
    'json'  => 'application/json',          # RFC 4627
    'pdf'   => 'application/pdf',           # RFC 3778
    'png
GX ( J/JA/JAU/GX/GX-0.2000_01.tar.gz, JAU, 2011; MetaCPAN )
GX/lib/GX/Serializer.pm ( view source; MetaCPAN )
he following classes inherit directly from L<GX::Serializer>:

=over 4

=item * L<GX::Serializer::JSON>

=item * L<GX::Serializer::Storable>

=back

=head1 AUTHOR

JE<ouml>rg A. Uzarek E<lt>uzarek@run

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