{"action":"closed","issue":{"url":"https://api.github.com/repos/geopython/pywps/issues/200","repository_url":"https://api.github.com/repos/geopython/pywps","labels_url":"https://api.github.com/repos/geopython/pywps/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/geopython/pywps/issues/200/comments","events_url":"https://api.github.com/repos/geopython/pywps/issues/200/events","html_url":"https://github.com/geopython/pywps/issues/200","id":184673565,"number":200,"title":"json output is base64 encoded","user":{"login":"jachym","id":1460823,"avatar_url":"https://avatars.githubusercontent.com/u/1460823?v=3","gravatar_id":"","url":"https://api.github.com/users/jachym","html_url":"https://github.com/jachym","followers_url":"https://api.github.com/users/jachym/followers","following_url":"https://api.github.com/users/jachym/following{/other_user}","gists_url":"https://api.github.com/users/jachym/gists{/gist_id}","starred_url":"https://api.github.com/users/jachym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jachym/subscriptions","organizations_url":"https://api.github.com/users/jachym/orgs","repos_url":"https://api.github.com/users/jachym/repos","events_url":"https://api.github.com/users/jachym/events{/privacy}","received_events_url":"https://api.github.com/users/jachym/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-23T05:56:30Z","updated_at":"2016-10-23T05:58:48Z","closed_at":"2016-10-23T05:58:48Z","body":"# Description\r\napplication/json output is base64 encoded\r\n\r\n# Environment\r\n\r\nall\r\n\r\n# Steps to Reproduce\r\n\r\nimport json\r\nfrom pywps import Process, LiteralInput, ComplexOutput, Format\r\n\r\n```\r\nclass TestJson(Process):\r\n    def __init__(self):\r\n        inputs = [LiteralInput('name', 'Input name', data_type='string')]\r\n        outputs = [ComplexOutput('out', 'Referenced Output',\r\n                   supported_formats=[Format('application/geojson')])]\r\n\r\n        super(TestJson, self).__init__(\r\n            self._handler,\r\n            identifier='testjson',\r\n            title='Process Test',\r\n            version='1.0.0.0',\r\n            inputs=inputs,\r\n            outputs=outputs,\r\n            store_supported=True,\r\n            status_supported=True\r\n        )\r\n\r\n    def _handler(self, request, response):\r\n        data = json.loads('[\"foo\", {\"bar\":[\"baz\", null, 1.0, 2]}]')\r\n        out_bytes = json.dumps(data, indent=2)\r\n        response.outputs['out'].output_format = 'application/json'\r\n        response.outputs['out'].data = out_bytes\r\n\r\n        return response\r\n```\r\n\r\nhttp://localhost:5000/wps?service=wps&request=execute&version=1.0.0&identifier=testjson&datainputs=name=xxx\r\n\r\n```\r\n<wps:ExecuteResponse xmlns:gml=\"http://www.opengis.net/gml\" xmlns:ows=\"http://www.opengis.net/ows/1.1\" xmlns:wps=\"http://www.opengis.net/wps/1.0.0\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd\" service=\"WPS\" version=\"1.0.0\" xml:lang=\"en-US\" serviceInstance=\"http://localhost:5000/wps?service=WPS&amp;request=GetCapabilities\" statusLocation=\"http://localhost:5000/outputs/582d1a46-98e4-11e6-941f-6036ddeb6716.xml\">\r\n  <wps:Process wps:processVersion=\"1.0.0.0\">\r\n    <ows:Identifier>testjson</ows:Identifier>\r\n    <ows:Title>Process Test</ows:Title>\r\n  </wps:Process>\r\n  <wps:Status creationTime=\"2016-10-23T07:48:38Z\">\r\n    <wps:ProcessSucceeded>PyWPS Process Process Test finished</wps:ProcessSucceeded>\r\n  </wps:Status>\r\n  <wps:ProcessOutputs>\r\n    <wps:Output>\r\n      <ows:Identifier>out</ows:Identifier>\r\n      <ows:Title>Referenced Output</ows:Title>\r\n      <wps:Data>\r\n        <wps:ComplexData mimeType=\"application/geojson\"><![CDATA[WwogICJmb28iLCAKICB7CiAgICAiYmFyIjogWwogICAgICAiYmF6IiwgCiAgICAgIG51bGwsIAogICAgICAxLjAsIAogICAgICAyCiAgICBdCiAgfQpd]]></wps:ComplexData>\r\n      </wps:Data>\r\n    </wps:Output>\r\n  </wps:ProcessOutputs>\r\n</wps:ExecuteResponse>\r\n```\r\n\r\n# Additional Information\r\n"}}
{"actor":{"display_login":"jachym"}}