Just write MyJSONProducer::Plack. Then, if you want to deploy your app in a CGI environment, you can use something like Plack::Handler::CGI.
This is the point of Plack and PSGI. If you write your code to the PSGI specification then you can deploy it anywhere.