Don't show merge option for detach
[scpubgit/stemmaweb.git] / lib / stemmaweb / View / JSON.pm
CommitLineData
b8a92065 1package stemmaweb::View::JSON;
2
3use strict;
4use base 'Catalyst::View::JSON';
5
5f15640c 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
b8a92065 16=head1 NAME
17
18stemmaweb::View::JSON - Catalyst JSON View
19
20=head1 SYNOPSIS
21
22See L<stemmaweb>
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.