Question

4
Replies
953
Views
VikashS9 Member since 2015 4 posts
Cisco Systems Inc
Posted: 2 years ago
Last activity: 1 year 10 months ago
Closed
Solved

How to pass Not Allowed characters in Json

I have requirement where user fills up text Area in a form. User can hit enter button to change line, Tab button for spaces, etc on the text Area. We are passing the field values to External Service using Json. Now if user hits Json Not Allowed Special Char viz Backspace, FormFeed, new line, Tab, BackSlash etc throws error that " Cannod decode..... Input String Reader Error". I want to escape these special char. When I use the function @Utilities.encodeURL(PageName.PropertyName) for the field, it works but then it converts all the special characters to different characters for. e.g. all spaces are converted to + sign, all the commas are converted to % etch which we don't want.

I tried to replace \n or \t etc with some text value, but that also didn't help.

Any idea how can this be done.

Moderation Team has archived post
Share this page LinkedIn