Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

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