Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] REST returns Boolean as XML not JSON

$
0
0
I have a REST API and want to return a single value e.g. one boolean  or one text. when i test the function in SoapUI it always comes back as XML not JSON. Same when i use a browser like chrome. If I create a structure with one Boolean and use that structure as the output then JSON is returned. Why do i have to use a structure when i want to just return one value? Is there a way to tell the REST service to always return JSON even for just one value?

Herer is what SoapUI shows me as the return from the REST call to the function that returns a boolean
<data contentType="text/plain; charset=utf-8" contentLength="4"><![CDATA[true]]></data>

attached is a sample espace

Thank you for any tips.

Viewing all articles
Browse latest Browse all 1476385


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>