Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details

Parsing: Heterogeneous (Mixed) JSON Arrays

cancel
Showing results for 
Search instead for 
Did you mean: 
Dalton_Ruer
Support
Support

Parsing: Heterogeneous (Mixed) JSON Arrays

Last Update:

Nov 4, 2025 12:31:27 PM

Updated By:

Dalton_Ruer

Created date:

Nov 4, 2025 12:16:05 PM

Attachments

Dalton_Ruer_0-1762275232289.png

If you look closely the following image is very similar to the image above that I used for the Heterogeneous (Mixed) JSON Objects post. The difference is that instead of being multiple rows, it's a single JSON block which contains multiple rows as an array. 

It also looks very close to the image I used for the JSON Arrays (Homogeneous Objects) post above that one. The difference is that in the case of that post, the array was easy to understand as just being multiple rows for the same entity. In this case, each of the "rows" in our array our for different entities.  

Since the previous post was so long, and you definitely did the homework for both of the referenced posts I'm going to keep this one short. We are simply going to walk through how you can convert the array of data into a table of data that can be parsed in a flexible way.  

Practice

If you haven't already done so for a previous post, go ahead and download the WildDataFrontier.qvf that is attached, uploaded it to your environment and open the load script.  

Section6.png

{ Notice there are multiple sections. Each of them will pertain to a separate article and for this article the section named "6 - JSON Array: Heterogenous Mixed Objects" is the one you want to have at the top of your script for this post. } 

Section6_LoadData.png

 

Same basic type of inline load that you've seen in previous posts. Unlike the previous post where the data was multiple rows for a table, I've returned to simulating a single JSON block return. You can see the pretty view of the data, as well as the single row view.  

Feel free to scroll right down to Step 1 in the preceding load process. You will see that all I do is use the IterNo() function to iterate the array, and simply create a table like we started with in the previous post.  

Dalton_Ruer_3-1762275991475.png

If you comment out Steps 2-4 in the load script so that Step 1 is the only active you can see the results in the preview tab. 

Dalton_Ruer_5-1762276263934.png

Just like we did in the previous post, feel free to simply uncomment 1 Step at a time in the load process, until you return to having all 4 steps being active. At that point if you take a look at the preview and will see that you have in fact parsed out all the values for all of the fields for every mixed entity JSON block in the array.  

Dalton_Ruer_6-1762276475648.pngBig Picture 

This post is part of a series aimed at ensuring you have the tools needed to Tame with Wild West Data Frontier, I mean Tame the Wild JSON Data Frontier you may be facing.  

Posts:  

 

 

 

 

 

 

 

 

Labels (1)
Contributors
Version history
Last update:
6 hours ago
Updated by: