3 Replies Latest reply on May 21, 2020 9:15 AM by Tim Kremer

    Search and Replace with CRLF

    Tim Kremer
      Share This:

      I have a process that produces a large JSON value that I need to forward on to a REST API as a post.  Unfortunately the entire JSON payload is being received as a single line and my REST API fails because the line length is too long.  My solution is to find "}," and replace it with "}," plus carriage return/line feed.  Here is what I've done:

       

      • Add a String Utility activity with a regex search & replace
        • Search text: },
        • Replace with: },


      Unfortunately, the activity is replacing with the literal text of "},
" and not a CRLF.  I tried doing the same thing with \r\n but this produced the same results of literal text.  Any ideas on how to insert new lines in a context containing a very large string?