Output of script is a single JSON object, ready to convert into web service