Thank you so much. Its working for me. Now I am able to form JSON using above syntax.
Original Message:
Sent: 10-16-2024 02:11
From: Michael Lukoschek
Subject: Form a JSON using dynamic variable values
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
Original Message:
Sent: 10-14-2024 12:49
From: Shenbagamoorthy B
Subject: Form a JSON using dynamic variable values
Hello Everyone,
I tried to form a JSON using JsonParse method like below.
JsonParse("{ \"ANI\": Call.ANI, \"Data\": Task.Data1, \"DNIS\": Call.CalledAddressOriginal, \"ConversationId\": Call.ConversationId }")
During the runtime i am getting error. How can i pass the Variables values to Json object? Please Assist on this.
#API/Integrations
#ArchitectureandDesign
#Routing(ACD/IVR)
#Telephony
------------------------------
Regards,
Shenbagamoorthy B
TechLead
Pointel Inc.,
------------------------------