Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Parse JSON column in table and output original columns with JSON data columns

DougHawes
5 - Atom

I have a table with multiple columns that includes one column with JSON data. I would like my final output to include all the non-JSON columns along with the parsed columns from the JSON data.

 

Example Data:

UserDateAuditData
Bob1/1/2017{ "Report": "Gross Sales", "IP": "111.111.111"}
Julie1/2/2017{ "Report": "COGS", "IP": "222.222.222"}
Elle1/2/2017{ "Report": "Gross Sales", "IP": "333.333.333"}

 

Desired Output:

UserDateReportIP
Bob1/1/2017Gross Sales111.111.111
Julie1/2/2017COGS222.222.222
Elle1/2/2017Gross Sales333.333.333
3 REPLIES 3
jdunkerley79
ACE Emeritus
ACE Emeritus

Use a JSON Parse tool followed by a Cross Tab tool.

 

Note the JSON you provided lacked quotes round the key field. 

 

Quick sample attached

DougHawes
5 - Atom

Thank you jdunkerley79, I tried the Cross Tab earlier, but did not have First Row checked.

rrikkala
5 - Atom

Is there a way we can do this for multiple JSON type columns at once ?

Labels