/[Frey]/trunk/lib/Frey/JSON.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/lib/Frey/JSON.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 441 - (show annotations)
Wed Nov 19 02:05:15 2008 UTC (15 years, 5 months ago) by dpavlin
File size: 227 byte(s)
fix json dumper
1 package Frey::JSON;
2 use Moose;
3
4 =head1 DESCRIPTION
5
6 dump perl data as json
7
8 =cut
9
10 use JSON;
11
12 has data => (
13 is => 'rw',
14 required => 1,
15 );
16
17 sub markup {
18 my ($self) = @_;
19 JSON->new->allow_nonref(1)->encode($self->data);
20 }
21
22 1;

  ViewVC Help
Powered by ViewVC 1.1.26