Returning pure JSON when using SMX web service is somehow critical to passing data from the server to the client (Mobile Phones, Websites etc).
For almost six months I have had a problem where I did not want JSON to be returned wrapped up in XML strings for example:
This created problems when trying to call the API using angularJS when JSON has to be returned and read in a promise. The error that was thrown was Cannot Read Data At Position 0 >.
How I solved this annoying problem is by synthesizing the function in the Webservice so that it does not return a String, instead to have Void defined