Expand my Community achievements bar.

Latest Community Ideas Review is Out: Discover What’s New and What to Expect!
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 6

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 6

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.