Alteryx Designer Desktop Discussions

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

Convert Table To JSON

Alc2020
7 - Meteor

Hi,

 

I have the following table.

 

  home_address     
first_namelast_nameaddress_line1address_line2citystatezipcountry
JohnDoe#123 Street 123Suite 123BrooklynNew York12312US
Name2       
and so on       

 

How can I make this into a JSON output like below?

 

 

 

{
  "first_name": "John",
  "last_name": "Doe",
  "home_address": {
    "address_line1": "#123 Streat 123",
    "address_line2": "Suite 123",
    "city": "Brooklyn",
    "state": "New York",
    "zip": "12312",
    "country": "US"
  }
}

 

 

 

Thank you very much.

4 REPLIES 4

Hi @Alc2020 

 

Please check the attached. I built a hierarchy for the address to appear the way you want it. Hope it helps. Cheers!

 

christine_assaad_0-1608654960108.png

 

ChiN
Alteryx Alumni (Retired)

hi @Alc2020 ,

 

We have Json build tool that can do that. Check out the workflow attached. Does this format work for you?

 

messi007
15 - Aurora
15 - Aurora

@Alc2020,

 

Please see below:

 

messi007_0-1608655843427.png

Attached the workflow,

 

Hope that Helps,

 

Regards,

Alc2020
7 - Meteor

Thank you very much for your help!

Labels