B2B Integration

 View Only

escape all the json forbidden characters in ITX

  • 1.  escape all the json forbidden characters in ITX

    Posted Tue November 21, 2023 05:55 PM
    I am using ITX to transform and i need to escape all the json forbidden characters. 
    I thought I could use Item Restrictions (Character/Exclude) to exclude forbidden characters and replace them with the reference string.
     
    json forbidden characters which needs to be escaped:
     
    Backspace to be replaced with \b
     
    Form feed to be replaced with \f
     
    Newline to be replaced with \n
     
    Carriage return to be replaced with \r
     
    Tab to be replaced with \t
     
    Double quote to be replaced with \"
     
    Backslash to be replaced with \\
     
     
    Any help would be HUGELY appreciated.


    ------------------------------
    Jayachandra M
    ------------------------------