コミュニティアチーブメントバーを展開する。

Don’t miss the Workfront AMA: System Smarts & Strategic Starts! Ask your questions about keeping Workfront running smoothly, planning enhancements, reporting, or adoption, and get practical insights from Adobe experts.
解決済み

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

トピック

トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。

1 受け入れられたソリューション

Avatar

正解者
Level 7

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

元の投稿で解決策を見る

3 返信

Avatar

正解者
Level 7

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

Avatar

Level 4

Thanks. I'll give that a try and let you know 🙂

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.