cancel
Showing results for 
Search instead for 
Did you mean: 

How To handle When the Json Request containing escape sequence characters.

Former Member
0 Kudos
372

Hi Experts,

I have a Problem with the escape sequence characters.As per our implementation, we are creating the CSV's from JSON request and placed these CSV's in Hot Folder.

But When escape sequence characters(/n) coming in one of the JSON attributes value and writing this value in CSV. the value after the "/n" character treated as a next line value, due to this Impex was failed.

Could you Please provide the solution how to handle the escape sequence characters in JSON Request

Accepted Solutions (1)

Accepted Solutions (1)

VinayKumarS
Active Contributor
0 Kudos

Can you check this link it may help you

https://www.freeformatter.com/json-escape.html

Answers (1)

Answers (1)

0 Kudos

Hi, you may give "window.btoa" a try, i mean you can encode the json properties you suspect which may have an escape char to btoa string, and get Base64 decoder to decode the string