Yup, I'm aware of that - but I'm trying to do it without extra perl modules (as its only that single line I need to print, as part of a JS script, which expects a JSON response)
This script is gonna be a "plugin", so I don't want people to have to install extra modules unnecesserily.