package MojoMojo::Controller::JSON;
use strict;
use parent 'Catalyst::Controller';
=head1 NAME
MojoMojo::Controller::JSON - Various functions that return JSON data.
=head1 SYNOPSIS
This is the Mo
jo for various functions that return JSON data.
=head1 DESCRIPTION
This controller dispatches various JSON data to AJAX methods in MojoMojo.
These methods will be called indirectly through JavaScrip
t functions.
=head1 ACTIONS
=head2 tagsearch (json/tagsearch)
Backend which handles jQuery autocomplete requests for tag.
=cut
sub tagsearch : Local {
my ($self, $c) = @_;
my $query = $c->r