Hi,
Can anyone assist with the following issue? We have an automation process that extracts a string of text from a ticket, and then attempts to parse that text as a JSON object. While it works some of the time, I need an expression that will escape any double quotes, single quotes, and backticks.
For example (below), the text we receive in a ticket can include a password with double quotes, which causes the parse JSON to fail because the string isn't valid JSON. What I need is an expression that will either escape or remove any double quotes, single quotes, and backticks, allowing the text to be parsed as valid JSON.
Any help would be greatly appreciated!
{
"displayName": "John Doe",
"givenName": "John",
"surname": "Doe",
"companyName": "Example Company Ltd",
"employeeHireDate": "2024-01-01",
"employeeId": "1234",
"streetAddress": "123 Example St",
"city": "Example City, Example State",
"postalCode": "12345",
"country": "XX",
"jobTitle": "Software Engineer",
"department": "Development - Main Office",
"officeLocation": "Main Office",
"accountEnabled": true,
"mail": "john.doe@example.com",
"mailNickname": "john.doe",
"passwordProfile": {
"forceChangePasswordNextSignIn": true,
"password": "Password”123!"
},
"userPrincipalName": "john.doe@example.com"
}