Hi.

When trying to make a RESTful POST method webservice call in OutSystems we are facing the below challenge:

Here is the request body :

{
   "PARENT_TBL":{
      "CHILD__TBL_ITEM":[
         {
            "SOME_VALUE":"ABC"
         }
      ]
   },
   "HEADER_OPERATION":""
}

When the "HEADER_OPERATION" parameter is populated with any value we are getting the below error:

Parsing '': Additional text found in JSON string after finishing deserializing object.


We have a created a structure for the Input Parameters and it has the attribute for 'HEADER_OPERATION' and it is being populated with relevant string value. 


PS: We executed the request under the REST API Method by using the 'Test' feature and we are able to obtain the correct response from web service with the string value for the key 'HEADER_OPERATION'.

We are using ardoJSON and Outsystems2JSON action to convert it to Object and pass it to the JSONRequest action.

Kindly help.



Hi Tauseef,

I'm a but lost what you are doing, primarily for the last line: "We are using ardoJSON and Outsystems2JSON action to convert it to Object and pass it to the JSONRequest action." Are you by any chance on a very old version of the Platform (version 8 or the like) that doesn't have native REST support?

In OutSystems 10 (and 11), you don't need to use ardoJSON (there's a built-in JSONSerialize/Deserialize for that), but what's more, you don't need to "manually" serialize anything at all, as the Platform takes care of that. You just define a Structure with the right Attributes, and use that as Input Parameter to your POST Method.