Changed 'result' to 'output', used symbols for the result, and updated to actually returned JSON.