Expand my Community achievements bar.

Never miss an update of the Adobe Journey Optimizer Community Lens! Subscribe now to get the latest updates, insights, and highlights delivered straight to your inbox every time a new edition drops.
SOLVED

Add double quotes Around a word within a string

Avatar

Level 1

Hi, 

 

"ctaText": "Go To "Deals"",
 
 
I want to double quote the word Deals in JSON and was wondering what the right syntax is.
 
"ctaText": "Go To \"Deals\""
 

Will this work??
 
Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

You can validate it on the following lines 

{% let var = "\"ctaText\": \"Go To \"Deals\"\"" %}
{{var}}

 

https://experienceleague.adobe.com/en/apps/journey-optimizer/ajo-personalization?lang=en# 

Mohan_Dugganab_0-1755789749629.png

 

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

You can validate it on the following lines 

{% let var = "\"ctaText\": \"Go To \"Deals\"\"" %}
{{var}}

 

https://experienceleague.adobe.com/en/apps/journey-optimizer/ajo-personalization?lang=en# 

Mohan_Dugganab_0-1755789749629.png