analysis script for upcoming presentation
[scpubgit/stemmatology.git] / stemmaweb / lib / stemmaweb / View / JSON.pm
CommitLineData
5c9ecf66 1package stemmaweb::View::JSON;
b90c84a0 2
3use strict;
4use base 'Catalyst::View::JSON';
5
a8928d1d 6use JSON::XS ();
7
8sub encode_json {
9 my( $self, $c, $data ) = @_;
10 my $json = JSON::XS->new->utf8->convert_blessed(1);
11 $json->encode( $data );
12}
13
141;
15
b90c84a0 16=head1 NAME
17
5c9ecf66 18stemmaweb::View::JSON - Catalyst JSON View
b90c84a0 19
20=head1 SYNOPSIS
21
5c9ecf66 22See L<stemmaweb>
b90c84a0 23
24=head1 DESCRIPTION
25
26Catalyst JSON View.
27
28=head1 AUTHOR
29
30Tara Andrews
31
32=head1 LICENSE
33
34This library is free software, you can redistribute it and/or modify
35it under the same terms as Perl itself.