Escape double quotes and other characters in JSON body | Adobe Higher Education
Skip to main content
Level 3
March 21, 2024
Respondido

Escape double quotes and other characters in JSON body

  • March 21, 2024
  • 1 resposta
  • 1394 Visualizações

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

Este tópico foi fechado para respostas.
Melhor resposta por cverges

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

1 Resposta

cvergesResposta
Level 5
March 21, 2024

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

Level 3
March 22, 2024

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