Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

How to Pair and Pivot JSON Key-Value Pairs Using Transpose and Cross Tab in Alteryx?

AKPWZ
8 - Asteroid

I have a dataset parsed from JSON in the following format:

Parse JSON  
JSON_NameJSON_ValueStringindex
results.0.values.0.nameemail1
results.0.values.0.valuesigirence@gmail.com1
results.0.values.1.namefirstname1
results.0.values.1.valueSigires1
results.0.values.2.namelastname1
results.0.values.2.valueEse Since1
results.0.values.3.namecountry1
results.0.values.3.valueCO1
results.0.values.4.nametell_us_about_yourself1
results.0.values.4.valueStudent1
results.0.values.5.namesign_in_agree_to_t_c1
results.0.values.5.valueTRUE1
results.1.values.0.nameemail2
results.1.values.0.valueismaro10@gmail.com2
results.1.values.1.namefirstname2
results.1.values.1.valueIsmael2
results.1.values.2.namelastname2
results.1.values.2.valueCipriani2
results.1.values.3.namecountry2
results.1.values.3.valuePE2
results.1.values.4.nametell_us_about_yourself2
results.1.values.4.value leader2
results.1.values.5.nametell_us_about_yourself2
results.1.values.5.valueEducator2
results.1.values.6.namesign_in_agree_to_t_c2
results.1.values.6.valueTRUE2



I need to transform it into this expected format:

Expected Result     
      
emailfirstnamelastnamecountrytell_us_about_yourselfsign_in_agree_to_t_c
sigirence@gmail.comSigiresEse SinceCOStudentTRUE
ismaro10@gmail.comIsmaelCiprianiPE leaderTRUE
ismaro10@gmail.comIsmaelCiprianiPEEducatorTRUE

 

I tried using the Transpose and Cross Tab tools, but I am struggling to pair the .name and .value entries correctly. Could someone guide me on how to achieve this transformation step by step?

 

Attaching excel file.

2 REPLIES 2
alexnajm
17 - Castor
17 - Castor

Here's a start for you:

AKPWZ
8 - Asteroid

Thank you so much @alexnajm 

Labels