summaryrefslogblamecommitdiff
path: root/lib/Net/HTTP/API/Parser/JSON.pm
blob: be8b30e9628eb28bdb3294d74525e6d34715d485 (plain) (tree)
1
2
3
4
5
6
7
                                     
 

                      

          
                                 











                                       



                  
package Net::HTTP::API::Parser::JSON;

# ABSTRACT: Parse JSON

use JSON;
use Moose;
extends 'Net::HTTP::API::Parser';

sub encode {
    my ($self, $content) = @_;
    return JSON::encode_json($content);
}

sub decode {
    my ($self, $content) = @_;
    return JSON::decode_json($content);
}

1;

=head1 SYNOPSIS

=head1 DESCRIPTION