/[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 419 - (hide annotations)
Tue Nov 18 16:55:41 2008 UTC (15 years, 5 months ago) by dpavlin
Original Path: trunk/lib/Frey/JSON.pm
File size: 199 byte(s)
produce json from data (for pipes)
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     to_json $self->data;
20     }
21    
22     1;

  ViewVC Help
Powered by ViewVC 1.1.26