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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

separate fields and parse a json array to get the normal structure of a json file

Hello 

 

I created this job 

 

 

0683p000009MA3b.png


here is a part of the result of the tow tLogRow

 

0683p000009MA3g.png

 

 

0683p000009M9yn.png

 

0683p000009MA3q.png

 

 

 

here is a part o my json file structure 

 

0683p000009M9tK.png

 

 

my problem is with the arrays the content o an array is tronsformed to a string that contains all fields and values like beneficiaries array so when i insert into my mongo data base the result looks like this 

 

0683p000009MA3v.png

 

can you help me please to separate fields and parse this string to get the normal structure of a json file ?

 

 

Thanks

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi,

 

The problem comes from your Jsonpath tree in tjsoninput component.

Use tExtractJSONField

define "beneficiaries" 's class to "array"

add the sub elements :

for example : jsonpath for "lastName" is "$.beneficiaries[*].name.lastName"