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
cancel
Showing results for 
Search instead for 
Did you mean: 
SJeshwani1618330394
Contributor
Contributor

How to extract array values from JSON data?

Hi,

I am using tHttprequest component to extract JSON data:

The URL is: https://modis.ornl.gov/rst/api/v1/MYD13Q1/subset?latitude=49.67&longitude=8.26&band=250m_16_days_NDV...

the response looks like this:

{

"xllcorner": "593271.91",

"yllcorner": "5521992.65",

"cellsize": 231.656358264,

"nrows": 9,

"ncols": 9,

"band": "250m_16_days_NDVI",

"units": "NDVI ratio - No units",

"scale": "0.0001",

"latitude": 49.67,

"longitude": 8.26,

"header": "https://modisrest.ornl.gov/rst/api/v1/MYD13Q1/subset?latitude=49.67&longitude=8.26&band=250m_16_days...",

"subset": [

{

"modis_date": "A2021249",

"calendar_date": "2021-09-06",

"band": "250m_16_days_NDVI",

"tile": "h18v04",

"proc_date": "2021266003815",

"data": []

},

{

"modis_date": "A2021265",

"calendar_date": "2021-09-22",

"band": "250m_16_days_NDVI",

"tile": "h18v04",

"proc_date": "2021282010410",

"data": []

}

]

}

From Talend, I am using tJSONExtractFields. However, I am getting the array values in one cell.

Please find the log output in the attached screenshot:

0695b00000KCDn0AAH.png

How to separate these values in different columns?

Regards,

Sheetal

Labels (2)
1 Reply
Anonymous
Not applicable

Hi

What are your expected result? With this json data, you should be able to extract each array value as one row, see

0695b00000KCPyoAAH.png 

Regards

Shong