Fix compile stmt

* Following up @cmaloney's comments on #232.
* Removes the last member AsStr function in this codebase.
* The JSON result should be just a JSON object rather than a JSON encoded string.