Hello,
Lately I've had an increasing number of Workflows that use the Web Request to interact with APIs using data collected in a Forms process. The problem I run into is that users sometimes enter characters that are reserved in JSON, such as tab, backslash, or double quotes.
So far the easiest solution has been to just apply regex on the Forms side to prevent those characters from being used. The alternative is to clean them up on the back end, but it can be a huge pain to "sanitize" every form field value before making the API call.
Instead, what I'd love to see is a JSON format tag, similar to the HTML tag, that would automatically clean up reserved JSON characters. That way, I could just use %(Token#"JSON"#) to handle it automatically.
i.e., X"Y\Z would be sent over as X\"Y\\Z
A formatting tag like that would make API calls so much easier because I wouldn't have to worry about all the different ways I might end up with a reserved character; I could just use the tag and call it a day.