We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

JSON nestled reponse parses into rows

Brayndasilva
7 - Meteor

Hi,

 

I am collecting metadata on a certain dataset from a public API. The metadata is provided to me in JSON format.

https://opendata.cbs.nl/ODataApi/odata/83648NED/RegioS

 

With the help of the 'Download' tool I fetch the JSON response and then parse it with the 'JSON Parse' tool. The data is there, but not quite in the right format. Refer to the below image.

 

Brayndasilva_0-1628581358362.png

 

The data I need is nestled within the 'value' group with each 'Key' containing the information I need. I am trying to generate a table containing the values of each Key nestled in the JSON response. So for the first line something like:

 

KeyTitleDescriptionCategoryGroupID
NL01Nederland NULL
........

 

What would be an approach to transform the data into the desired format?

 

1 REPLY 1
atcodedog05
22 - Nova
22 - Nova

Hi @Brayndasilva 

 

Here is how you can do it. You can use regex to extract rowid and column names. And crosstab to convert it to table.

Workflow:

atcodedog05_0-1628582368356.png

 

Hope this helps : )

 

Labels
Top Solution Authors