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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Flatten JSON Structure

Hi,

I have the following JSON returned from the tRest component. I need extract the data so in essence I have a list of tasks with their respective parent projectID and projectName. How can this be achieved using the tExtractJSONFields component. I ve had about 2 hours experience with Talend so a detailed explanation if possible 0683p000009MACn.png

 

{
"data": [
{
"projectID": "573c8fbe001bc563b07a8e1c908bf071",
"projectName": "UK_0182_Maidstone",
"objCode": "PROJ",
"parameterValues": {
"DE0683p000009MACJ.pngS Opening Date - Actual": "2015-07-31",
"DE0683p000009MACJ.pngS Country": "United Kingdom",
"DE0683p000009MACJ.pngS NSC / Importer": "My UK. Ltd",
"DE0683p000009MACJ.pngS Format": "Forurteco",
"DE0683p000009MACJ.pngS Region": "DEUR"
},
"estStartDate": "2016-05-18T18:52:00:000+0300",
"estCompletionDate": "2016-10-14T15:13:00:000+0300",
"lastUpdateDate": "2017-05-16T12:31:52:074+0300",
"plannedCompletionDate": "2016-10-13T15:21:00:000+0300",
"plannedStartDate": "2016-05-18T02:00:00:000+0300",
"tasks": [
{
"ID": "573c8fbe001bcdeb524c99bf8786f090",
"name": "Confirm orders placed with Supply Chain",
"objCode": "TASK"
},
{
"ID": "573c8fbe001bcc48de510aef0fc1d1c9",
"name": "Review Design Pack and issue to Brand ",
"objCode": "TASK"
}
]
}
]
}

Labels (4)
2 Replies
Anonymous
Not applicable
Author

Hi,

Could you please also post your expected result on forum?

Best regards

Sabrina

Anonymous
Not applicable
Author

Hi,
Example of raw JSON returned from REST API

{
"data": [
{
"projectID": "573c8fbe001bc563b07a8e1c908bf071",
"projectName": "UK_0182_Maidstone",
"objCode": "PROJ",
"parameterValues": {
"DE 0683p000009MACJ.pngS Opening Date - Actual": "2015-07-31",
"DE 0683p000009MACJ.pngS Country": "United Kingdom",
"DE 0683p000009MACJ.pngS NSC / Importer": "My UK. Ltd",
"DE 0683p000009MACJ.pngS Format": "Forurteco",
"DE 0683p000009MACJ.pngS Region": "DEUR"
},
"estStartDate": "2016-05-18T18:52:00:000+0300",
"estCompletionDate": "2016-10-14T15:13:00:000+0300",
"lastUpdateDate": "2017-05-16T12:31:52:074+0300",
"plannedCompletionDate": "2016-10-13T15:21:00:000+0300",
"plannedStartDate": "2016-05-18T02:00:00:000+0300",
"tasks": [
{
"taskID": "573c8fbe001bcdeb524c99bf8786f090",
"taskName": "Confirm orders placed with Supply Chain",
"objCode": "TASK"
},
{
"ID": "573c8fbe001bcc48de510aef0fc1d1c9",
"name": "Review Design Pack and issue to Brand ",
"objCode": "TASK"
}
]
}
]
}


Need to get this structure
Project ID, Project Name, DE 0683p000009MACJ.pngS Country ,Task ID, Task Name

Thanks in advance