Hi Guys,
I'm using the below simple Get Webservice to return a JSON file, its working but the response is actually of Text type not JSON Type
ClassMethod cmGetHomes(cnt1, cnt2) As %Status
{ S response="{""Land"""_":"_""""_cnt1_""",""Home"""_":"_""""_cnt2_"""}"
// set dataObj=##class(%DynamicObject).%FromJSON(response.data)
//set response.data = dataObj
//W response.%ToJSON()
//set response.data = {}.%FromJSON(response.data)
//set response.data = {}.%FromJSON(response.data)
W response
Quit $$$OK
}
This is the response that I'm getting in Postman
.png)
But it says type is text not JSON
.png)
Thanks

.png)
.png)
.png)
.png)