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.
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.