Almost working version for Debian::Server for JSON file generation