blob: 4711a8a45e143d2020cb13ce387ee19246fdf5f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package MooseX::Net::API::Parser::JSON;
use JSON;
use Moose;
extends 'MooseX::Net::API::Parser';
sub encode {
my ($self, $content) = @_;
return JSON::encode_json($content);
}
sub decode {
my ($self, $content) = @_;
return JSON::decode_json($content);
}
1;
|