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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
stagliaferri1640766615
Contributor II
Contributor II

Parsing JSON using tExtractJSONFields

Hello 🙂

i am parsing a JSON file using tExtractJSONFields which has this structure:

 "applications": [

    {

      "id": 12345678,

      "candidate_id": 9876543,

      "location": {

        "address": "Nowhere"

      },

"source": {

        "id": 678543,

        "public_name": "Source of job"

      },

      "jobs": [

        {

          "id": 44444444,

          "name": "CEO of company"

        }

      ],

      "job_post_id": 444555555

]

in this way:

0695b00000Z1nO4AAJ.png

then I use a tmap and I am loading the data in a sql table.

I don't understand why job_id nad job_name are not stored (but values are in the JSON)

but for example, source and source_id are ok.

How can I fix it to have also job_id and job_name?

thank you very much

sergio

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Please change the Json query like the below

job_id --> "$.jobs[*].id"

job_name --> "$.jobs[*].name"

0695b00000Z1nXaAAJ.png

View solution in original post

5 Replies
Anonymous
Not applicable

Please change the Json query like the below

job_id --> "$.jobs[*].id"

job_name --> "$.jobs[*].name"

0695b00000Z1nXaAAJ.png

stagliaferri1640766615
Contributor II
Contributor II
Author

I ve tried, but I got this error:

 

For input string: "[1437500]"

For input string: "[329280]"

 

😞

 

stagliaferri1640766615
Contributor II
Contributor II
Author

oooh got it, it can not be INT , I fixed it

stagliaferri1640766615
Contributor II
Contributor II
Author

the value are stored like this: [1459923], I will find a way to remove it

stagliaferri1640766615
Contributor II
Contributor II
Author

I replaced [*] with [0]