SOLVED
How to create JSON from multiple columns
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Sshasnk
8 - Asteroid
‎08-19-2020
03:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi I have 3 columns I have to create JSON So I can push it into an API, Below is the example
Input
Vender | Fruits | State |
Jhon | Apple | NYC |
Rick | Mango | TKY |
Matt | Banana | LND |
Output:
Vender | Fruits | State | JSON |
Jhon | Apple | NYC | { "Vender": "Jhon", "Fruits": "Apple", "State":"NYC" }
|
Rick | Mango | TKY | { "Vender": "Rick", "Fruits": "Mango", "State":"TKY" } |
Matt | Banana | LND | { "Vender": "Matt", "Fruits": "Banana", "State":"LND" } |
Let me know if there is any other to construct JSON
Solved! Go to Solution.
3 REPLIES 3
17 - Castor
‎08-19-2020
03:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Sshasnk I mocked up a workflow that produces the output you describe. Let me know what you think?
‎08-19-2020
04:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@JosephSerpis I also need the field names vender fruit, and State. Your solution is giving only JSON column
17 - Castor
‎08-19-2020
04:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Sshasnk I amended the workflow and attached the original fields back on.
