Alteryx Designer Desktop Discussions

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

Converting JSON format to desired CSV format

amitglko
5 - Atom

Hi I am looking to convert the JSON format file (attached fixings.txt, saved as txt as JSON cannot be uploaded) to the following format of CSV( attached file -AUD...CSV). Have used Python to convert but not getting how to do so using Alteryx. Also want to know how we can convert back from this CSV file to JSON format for upload in other systems. Any help is appreciated. Thanks.

9 REPLIES 9
gabrielvilella
14 - Magnetar

Hi @amitglko, here is one way of doing this, getting to that table and then changing it back to JSON.

gabrielvilella_0-1646108160871.png

 

Qiu
21 - Polaris
21 - Polaris

@amitglko 
Some thing like this?

0301-amitglko.PNG

amitglko
5 - Atom

Thanks @gabrielvilella...the file fixings.txt is actually a JSON file...when I am using your workbook I am getting some errors using the same txt file. Can you take in anyone of the JSON file attached in the zip folder. Thanks a lot.

Qiu
21 - Polaris
21 - Polaris
atcodedog05
22 - Nova
22 - Nova

Hi @amitglko 

 

Here is another way of doing it. 

 

You can read it all files at once by using wildcard * in the name where it changes

atcodedog05_0-1646118123301.png

 

Workflow: you can select and filter the required columns.

atcodedog05_2-1646118467891.png

 

Hope this helps : )

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @amitglko 

Cheers and have a nice day!

amitglko
5 - Atom

Thanks. Two points to note here a) in Input tab you used Unicode UTF-8 for JSON file and b) to recombine the output back to json I can use your earlier workflow. Again thanks a lot.

Qiu
21 - Polaris
21 - Polaris

@amitglko 
Thank you for accepting my answer.

amitglko
5 - Atom

Thanks a lot...This solves.

Labels
Top Solution Authors