---
name: "MojoMojo::Controller::JSON"
section: "3pm"
platform: "linux"
package: "libmojomojo-perl"
version: "1.12+dfsg-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/MojoMojo::Controller::JSON"
---

# MojoMojo::Controller::JSON(3pm)

Various functions that return JSON data.

## NAME

MojoMojo::Controller::JSON - Various functions that return JSON data.

## SYNOPSIS

This is the Mojo for various functions that return JSON data.

## DESCRIPTION

This controller dispatches various JSON data to AJAX methods in MojoMojo. These methods will be called indirectly through JavaScript functions.

## ACTIONS

### tagsearch (json/tagsearch)

Backend which handles jQuery autocomplete requests for tag.

### container\_set\_default\_width (json/container\_set\_default\_width)

Store width in session variable *container\_default\_width*.

### container\_maximize\_width (json/container\_maximize\_width)

Set or unset session variable *maximize\_width*, which is used to toggle maximum width when displaying the page.

### auto

Set default view

## AUTHOR

Sachin Sebastian \<sachinjsk at cpan.org\>

Robert Litwiniec \<linio at wonder.pl\>

## LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
