Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

How to remove unwanted \ from JSON output

ClaytonA
7 - Meteor

I am trying to remove unwanted characters from my JSON output file.

Value before RegEx_Replace = "{\"Test\":\"Attribute1\"}"

 

Instead I would like to output "{"Test":"Attribute"}" or {"Test":"Attribute"} for the value part of the JSON.

 

When I try to remove the \" and just put a single " (double quote), Alteryx automatically puts a \" to replace it.

I am assuming this is just the formatting of the JSON but need to remove the \'s to achieve one of the desired outputs above. 

 

Please let me know if I am doing something incorrect.

Thank you for your help in advance. 

10 REPLIES 10
IraWatt
17 - Castor
17 - Castor

Hey @ClaytonA,

The JSON build tool requires you to format your data into a JavaScript object structure like this for it to figure out what is an array/object/value/ect:

IraWatt_0-1667403269259.png

Check the JSON parse tool example to get an idea of how to structure your data for it. The example I attached creates a customer list JSON with each customer having the fields User ID and Profile Final which is the outputted perfectly to a JSON file:

IraWatt_1-1667403377420.png

 

 

Labels