JSON Escape

Hi, I am having an issue escaping quotes. I've tried regexReplace with no solution.

https://connective.celigo.com/t/faq-can-i-escape-double-quotes-from-a-string-passed-to-the-http-request-body/1466

Ex txt: Dimensions: "about_this_item": 27\" W x 24 1/2\" L
Weight: 20lbs ",

"value": "{{{regexReplace record.data.attributes.about_this_item "\'" "[\']"}}}

@joseph I'm a bit confused what you're trying to do. What input data do you have an what is your desired output? Quote are automatically escaped because if they aren't, then it wouldn't be valid JSON.

@tylerlamparter

Sorry, I should have explained that better. I'm having issues escaping double quotes.

I tried regex replace: “{{regexReplace record.data.[0].attributes.about_this_item ‘’ ‘"’}}” but this returns an error:

An invalid JSON is sent in the request.body, error: please ensure that you have wrapped all JSON property names in quotes. details: Unexpected token < in JSON at position 1377

@joseph I see, so you want to completely remove double quotes from your html field, correct? Then it looks like it is doing that in the AFE editor output, but then fails when you actually run it?

@tylerlamparter

Correct. I initially wanted to find a way to keep the double quotes and after multiple unsuccessful attempts I decided to remove the double quotes with regex replace but I'm unable to do that also. In the editor, it removes the double quotes once I run the flow it returns this error.

@joseph your handlebar is working for me. Are you sure the issue is with this field and not with another field or other part with your JSON output?