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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Jacco_De_Zwart
Creator
Creator

extract data from JSON, multiple loops with key/value pair

Hi there,

I have the following JSON response of a API call.

0695b00000Uy27nAAB.png

The part marked with green is no problem to extract using tExtractJSONFields by looping through the booking entry.

But how do I retrieve the parts marked in red ? Do I need a secondary (or two) tExtractJSONFields component ?

All help is appreciated.

Thanks in advance,

Jacco

Labels (5)
1 Solution

Accepted Solutions
Jacco_De_Zwart
Creator
Creator
Author

Well, been playing around a bit and came to the following solution.

0695b00000WtE8WAAV.pngBy splitting the message in to three parts, I'm able to extract all the information in the response of the API call.

 

This is my solution so far, until someone comes along with a better of more efficient solution.

 

But perhaps this can help you. Thanks for the interest.

 

Jacco

View solution in original post

3 Replies
Jacco_De_Zwart
Creator
Creator
Author

Additional . . . . the key/value pairs do not have to appear all the time. That means that in on JSON response a key/value pair may be present and in the other the same key/value pair may not be present

Mehdi_Mhedhbi2
Contributor III
Contributor III

any updates regarding this case ?

 

Jacco_De_Zwart
Creator
Creator
Author

Well, been playing around a bit and came to the following solution.

0695b00000WtE8WAAV.pngBy splitting the message in to three parts, I'm able to extract all the information in the response of the API call.

 

This is my solution so far, until someone comes along with a better of more efficient solution.

 

But perhaps this can help you. Thanks for the interest.

 

Jacco