Skip to main content

So in my HTTP v2 action I construct a JSON using

 

{ “path” : "[Event.event_target_file_fullPath]" }

 

and the value for `Event.event_target_file_fullPath` is c:\abc\def\ghi.

 

When I click to perform a simulation of the playbook, the HTTP v2 step fails with this error: Failed decoding body: ParsingError(Error parsing JSON: Error(\\"expected value\\", line: 1, column: 1))

 

My guess is that it doesn’t like “path” : “c:\abc\def\ghi”, and it should be “path” : “c:\\abc\\def\\ghi”. How can I perform this conversion? The field is literally taken out of a UDM field so I didn’t think conversion would be required. I also have application/json set as a content type header.

Hey ​@jsy ,


My suggestion would to use “String Functions” from “Functions” PowerUp to replace “\” with “\\” and then put it in the HTTPV2 action.


Ah! I wasn’t aware something like that existed. Thank you ​@ylandovskyy . I shall take a look.