Actually push a JSON response, and fix some lang

This should be good to go, everything is tested and all tests pass. The
only thing left to do is write a test for this.