Refactor dataToJSON out of hello.api, so that it can be separated later
Fix leaking variables
Fix leaking variables