Web.pm - Better way of accesing Goodie object data, convert to json and pass into script