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

Alteryx Designer Desktop Discussions

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

Convert API output which is a single field to a table

gatortone
6 - Meteoroid

Hi everyone,

 

I have a dataset that outputs from an API that looks just like this:

 

[{"Field1": true, "Field2": "blah blah blah", "Field3":12345}, {"Field1": false, "Field2": "blah blah blah", "Field3":67890}, etc]

 

How can I convert it to eventually look like:

 

Field1Field2Field3
trueblah blah blah12345
falseblah blah blah67890

 

Thank you for any assistance!

4 REPLIES 4
BenMoss
ACE Emeritus
ACE Emeritus
Step 1. Json parse (simple config just select your field).

Step 2. Text to columns on the json name field, usually with the . Delimiter to give you a record ID and appropriate column name for the value.

Step 3. Cross tab. Grouping by your ID field and setting the header field to be the 2nd part of the split and value field to be the json value string.

Ben
Thableaus
17 - Castor
17 - Castor

Hi @gatortone

 

Here's the solution I thought.

 

WorkflowJSON.PNG

gatortone
6 - Meteoroid

This worked like a charm!  Thanks so much!

gatortone
6 - Meteoroid

Thank you for this!  This method worked.  Thank you again!

Labels
Top Solution Authors