Expand my Community achievements bar.

Join us for our Coffee Break Sweepstakes on July 16th! Come ask your questions or share your use cases on Creative Briefs for a chance to win a piece of Workfront swag!
SOLVED

Escape double quotes and other characters in JSON body

Avatar

Level 4

I'm using a Custom API Call to add issues to Workfront. I'm looking for a simple way to escape unwanted characters. e.g. Double Quotes, tab characters, new line, etc etc. 

There is the replace function, but nested replaces are getting quite tricky and it doesn't seem to work well in the UI etc.

Any advice would help?

Rob

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 5

You need to use the "Transform to JSON" or "Create JSON" modules to properly escape to JSON strings.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 5

You need to use the "Transform to JSON" or "Create JSON" modules to properly escape to JSON strings.

Avatar

Level 4

Just thought I would write back and let you know that this worked for me. I used Create JSON

Thank you again.