/[Frey]/trunk/lib/Frey/View/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

Annotation of /trunk/lib/Frey/View/JSON.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 441 - (hide annotations)
Wed Nov 19 02:05:15 2008 UTC (15 years, 5 months ago) by dpavlin
Original Path: trunk/lib/Frey/JSON.pm
File size: 227 byte(s)
fix json dumper
1 dpavlin 419 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 dpavlin 441 JSON->new->allow_nonref(1)->encode($self->data);
20 dpavlin 419 }
21    
22     1;

  ViewVC Help
Powered by ViewVC 1.1.26