Hi Shengabamoorthy,
Sorry - I did answer a bit too fast and made a fault myself. Masking quotes in this kind of expressions can be a bit tricky.
The correct expressions should be: JsonParse("{ \"ANI\": \"" + Call.ANI + "\"}")
The second quote before "+Call.ANI" ends the string to enter the variable, while the first (masked one) starts the string in the resulting JSON expression.
You need to understand this general concept.
Best regards
Michael
------------------------------
Michael Lukoschek
NA
------------------------------
Original Message:
Sent: 10-15-2024 12:15
From: Shenbagamoorthy B
Subject: Form a JSON using dynamic variable values
Dear Michael,
Thank you for your Answer. I tried same thing in to Architect Update data block JSON Variable. I got the Output like {"ANI":+Call.ANI+}. I want exact ANI value. Kindly Assist on this.
------------------------------
Regards,
Shenbagamoorthy B
TechLead
Pointel Inc.,
------------------------------
Original Message:
Sent: 10-15-2024 08:30
From: Michael Lukoschek
Subject: Form a JSON using dynamic variable values
You are making a simple fault: The variables you are trying to add to the JSON are strings as well - so to parse them as JSON, they also need to be strings.
Like this: JsonParse("{ \"ANI\": \" + Call.ANI + "\"}")
------------------------------
Michael Lukoschek
NA