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: 
laurbass
Contributor
Contributor

Parsing JSON with nested ID

Hi. I would like to extract data from a json file and separate it by a given ID. I am looking at data from the United States and would like to separate it by state. the Json looks like this:

 

objs: {

{

 location: {

    id: "Alaska"

}

{policy1: "x"

policy2:"y"}

}

{

location: {

id: "Alabama"

}

{policy1: "x"

policy2: "z"

}

 

Is there a way to separate the data for each state using the nested location/id  tag and then separate the data into separate files/workflows based on state?

 

Thanks.

 

Labels (3)
2 Replies
root
Creator II
Creator II

Can you post the exact json please? This one what you have is not a valid json object
root
Creator II
Creator II

Can you post the exact json please? This one what you have is not a valid json object