In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to create JSON from multiple columns

Sshasnk
8 - Asteroid

Hi I have 3 columns I have to create JSON So I can push it into an API, Below is the example

 

Input

Vender FruitsState
JhonAppleNYC
RickMangoTKY
MattBananaLND

 

Output:

Vender FruitsStateJSON
JhonAppleNYC

{ "Vender": "Jhon",

"Fruits": "Apple",

"State":"NYC"

}

 

RickMangoTKY

{ "Vender": "Rick",

"Fruits": "Mango",

"State":"TKY"

}

MattBananaLND

{ "Vender": "Matt",

"Fruits": "Banana",

"State":"LND"

}

 

Let me know if there is any other to construct JSON

 

 

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @Sshasnk I mocked up a workflow that produces the output you describe. Let me know what you think?

Sshasnk
8 - Asteroid

@JosephSerpis  I also need the field names vender fruit, and State. Your solution is giving only JSON column 

JosephSerpis
17 - Castor
17 - Castor

Hi @Sshasnk I amended the workflow and attached the original fields back on. 

Labels
Top Solution Authors