<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD><BODY>Hi there.<div>I am using Seaside in Instantiations VAST Smalltalk to talk to an Android mobile phone app built using Cordova (basically HTML and JavaScript).<div>I have built a standard REST interface for obtaining and updating data,which is stored in a Riak NoSQL Key/Value database. <div>The database data is stored as JSON and the mobile phone Javascript (via JMobile) has a JSON parser.<div><div><br></div>To make the coding easier and cleaner, I would like to just send the JSON to the app, rather than a"whole" HTML page.<div>My call is this http://localhost:8080/WSAndroidUser?demo<div><div><br></div>This responds with:<div><div><div><br></div><!--StartFragment--><table >type</span>="<span class="html-attribute-value">text/javascript</span>"></span>function onLoad(){};<span class="html-tag"></script></span><span class="html-tag"></body></span><span class="html-tag"></html><div><div><br></div>I would like it just to respond with the JSON.<div><div><br></div><p style="margin: 5px 0px; font-size: 12px; line-height: normal; font-family: 'Times New Roman';">{"railroadName": "Sunset &amp; North Eastern RR","railroadLogoURL": "http://www.tm470routingproject.co.uk/images/snelogo.png","username": "demo","password": "5F4DCC3B5AA765D61D8327DEB882CF99","currentTTPositionString": "6","maxTTPositionString": "0"}</p></div><div><div><br></div>Can this be done?<div>David</div></div></div></span><span class="html-end-of-file"></span></td></tr></tbody></table><!--EndFragment--></div><br></div></div></div></div></div></div></div><div></div></BODY></HTML>
<br><hr><pre>Message sent using Winmail Mail Server</pre>