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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to read JSON file with multiple arrays in a node

I am using Talend for BigData 6.3.1 and trying to read JSON file with below format using tFileInputJSON(JsonPath without Loop) and tExtractJSONFields(XPath). I am able to extract records up to one level but unable to split it further. Now I need help to extract data under the fields rows, cells and field_def. 

 

Sample.json

{
columns {}
top_level_rows [1,2,...10]
rows:{
1 {
ref
child_refs -- empty array []
id
}
....
10 {
ref
parent_ref
child_refs
id
}
}
cells
[[ --(embedded array [])
[[
{
id
value
id
name
row
},
....
{
id
value
id
name
row
}
]],
[[
{
id
value
id
name
row
},
....
{
id
value
id
name
row
}
]],, ....
]]
field_def:
{
11: {
ref
table
}
.....
20: {
ref
table
}
}
}

 

I am new to Talend and need help to proceed. I googled a lot but unable to find anything for such scenarios.

 

Regards,

Keerthi

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thanks Sabrina. This link help me to understand further.

 

Perfect solution I was looking for is in https://community.talend.com/t5/Design-and-Development/Parsing-JSON-with-tExtractJSONFields/m-p/1596...

 

Just posting here so that it might help others

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hello,

Please try to two tExtractJSONField components in your job design.

Could you please take a look at this topic about:https://community.talend.com/t5/Design-and-Development/JSON-Array-values-to-Rows-is-there-a-better-w... to see if it is OK with your use case?

Best regards

Sabrina

 

Anonymous
Not applicable
Author

Thanks Sabrina. This link help me to understand further.

 

Perfect solution I was looking for is in https://community.talend.com/t5/Design-and-Development/Parsing-JSON-with-tExtractJSONFields/m-p/1596...

 

Just posting here so that it might help others

Anonymous
Not applicable
Author

Thanks for cross-referencing and posting the solution