ader,
the value can be a JSON-encoded payload which can be processed
in Perl. Perl can return the results of the processing through
a global PHP variable (again, possibly JSON encoded). The
C<t/10-hea
d> where I<payload> is the JSON-encoding
of a hash that defines C<n>, the number to operate on, and
C<result>, the name of the PHP variable to publish the results to.
JSON-encoding the header value
ines. For complex results, it is also
convenient to assign a JSON-encoded value to a single PHP global
variable.
...
use Mojo::JSON;
...
app->plugin('MojoX::Plugin::PHP',
{ ph