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.

JSON Parse tool dropping empty arrays

iwilliams
8 - Asteroid

I am getting a response from an API using the download tool.  The response contains some objects that are empty arrays.  These empty arrays are present in the output from the download tool, but once I parse the response using the JSON parse tool, they disappear.  Is there any way I can retain those empty arrays?

1 REPLY 1
BrandonB
Alteryx
Alteryx

This response will be a bit conceptual in nature because I don't have a dataset in front of me, but you could theoretically use multiple summarize tools which group by each array field. Then you could use the append tool to append each group from each summarize to every other group. This would create a combination of every group regardless of whether or not it had an array. You could then join this data back to the original dataset and observe what is falling out of the side of the join and union that with your inner join. This way you would still have the empty arrays they would just have null values in the corresponding columns. 

Labels