<div dir="ltr"><div><br></div><div><div>sub BUILD {</div><div>  my $plugin = shift;</div><div>  my $app    = $plugin->app;</div><div><br></div><div>  $plugin->app->add_route(<br></div><div>    method => 'get',</div><div>    regexp => qr!/mypagel!,</div><div>    code   => \&myfuncl,</div><div>  );</div></div><div><br></div><div>Then, in sub myfunc {  I want to call to_json.  Right now, I'm doing a use JSON, and it works properly.  Is there a way to call the serialozer from the app like $app->to_json?  What is recommended?</div><div><br></div><div>Thanks,    </div><div><br></div><div>Jack<br></div></div>