AnsweredAssumed Answered

JSON.parse doesn't  work in javascript step

Question asked by luiz kava on Feb 14, 2019
Latest reply on Feb 18, 2019 by luiz kava

I'm trying to get values from json, come from web-service, but when I try to use JSON.parse(variable), It throws a excepetion "SyntaxError: Unexpected token: t (script#4)". I'm sure that this script works, I work very well in other editor.

 

Below the mentioned json.

[

{

"id": "787365732584980480",

"numeroProposta": "151041",

"cliente": {

"id": "779795407335784449",

"idExterno": "FUNCAO_06170733926",

"emails": [

{

"email": "tatata@tata.tata.pr.gov.br"

}

]

},

"condicoes": [

{

"id": "787365732589174784",

"numeroParcelas": "0"

}

],

"acaoId": "758657009895284736",

"acaoNome": "AcaoDescontoNatalAntecipado"

}

]


 


And this is my javascript step

 

jsonerror.JPG



Outcomes