You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

JSON parser Error

Received Response
edited Jan 6, 2020 7:00PM in Visual Builder 5 comments


Parsing BIP Response with JSON.parse


Hi Experts,

I'm dealing with the following issue.

I have an action chain that executes a REST Integration (via OIC), that returns a BIP from ERP.

After that, with the response from the REST Integration call, we invoke the following javascript function (In order to parse the response into the format we want)

AppModule.prototype.transmuteResultData = function(jsonAsString) {
    var transmuteData = {};
    if (jsonAsString && typeof jsonAsString == 'string') {
      transmuteData = JSON.parse(jsonAsString);
    return transmuteData;


The problem is that whenever the response is a very long string, the JSON.parse fails.

Error: SyntaxError: Unexpected token S in JSON at position 57481

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!