Add `get_json` method to TestApp.