<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; } p.p1 { margin: 0px; font: 11px Menlo; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); } span.s1 { font-variant-ligatures: no-common-ligatures; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Anytime I request data as json I receive back a html escaped (utf-8) string. It seems that because the data is already in <br>
</p>
<p> <![CDATA[<br>
</p>
<p>there should be no need to convert each " to " as it's just making the data so much larger.<br>
</p>
<p>What can I do to set the json to be returned as a regular ascii string? Is there a configuration setting, or do I need to modify the pywps code and rebuld (if so, could you point me to what I need to modify please)?<br>
</p>
<p>I've tried changing the pywps.cfg like so:<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><br>
</p>
<p class="p1"><span class="s1">[server]</span></p>
<p class="p1"><span style="font-variant-ligatures: no-common-ligatures;">encoding=iso-8859-1</span><span style="font-variant-ligatures: no-common-ligatures;"></span><br>
</p>
<p><br>
</p>
<p>This happens with the default example <span style="color: rgb(80, 80, 80); font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; white-space: pre-wrap; background-color: rgb(250, 250, 250);">testjson
</span><span style="font-size: 12pt;">example (I didn't change anything, it was run straight from the code downloaded from github). Instead of getting back: </span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<div><wps:ComplexData mimeType="application/geojson" encoding="" schema=""><span style="font-size: 12pt;"><![CDATA[</span></div>
<p><span style="font-size: 12pt;"> ["foo", {"bar":["baz", null, 1.0, 2]}]<br>
</span></p>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
]]></wps:ComplexData></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
I'm getting:<br>
</div>
<p><span style="font-size: 12pt;"><br>
</span></p>
<div></div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<wps:ComplexData mimeType="application/geojson" encoding="" schema=""><span style="font-size: 12pt;"><![CDATA[</span></div>
[<br>
</div>
<div> "foo", </div>
<div> {</div>
<div> "bar": [</div>
<div> "baz", </div>
<div> null, </div>
<div> 1.0, </div>
<div> 2</div>
<div> ]</div>
<div> }</div>
<div>]</div>
<div></div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
]]></wps:ComplexData></div>
<div><br>
</div>
</div>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><b>Martin Paredes</b></div>
<div>DZYNE Technologies</div>
<div>Desk: 703.291.6662</div>
<div>Mobile: 202.251.7655</div>
<div>mparedes@dzynetech.com</div>
<div><br>
</div>
</div>
</div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style><style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>
</body>
</html>