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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Jacco_De_Zwart
Creator
Creator

How to handle json array without key using THMAP

Hi al,

When I use an api-end-point that returns it's data in a json array. This array has no key (see image below)

StockProduct-Respons.png

How do I handle this type of array without a name (without a key) ??

JSON responses with an array that does have a name (the array has a key), like this one :

ProductsRespons.png

 is no problem using THMAP.

What do I need to do in order to proces an array without a key ?

Thanks in advance.

 

 

Labels (3)
3 Replies
fcolagiacomo
Contributor III
Contributor III

Hi,

I don't know tHMap but if you could use json path (tExtractJSONFields component) you can use the query  "$.[*]" to get all elements of array.

jlolling
Creator III
Creator III

There is a complete component collection handlich json in a most convinent way:  tJSONDoc*-Komponents.

These componentes works native with JSON without using XML Documents as internal format.

Check them out here: https://github.com/jlolling/talendcomp_tJSONDoc

Jacco_De_Zwart
Creator
Creator
Author

Thanks Jan, I will check these components out !