Hi Hemalatha,
As your JSON path in JSON structure is dynamic you need to write some logic to convert it to key value pair using JSON listify

Below are the steps
1. JSON listify to convert the dynamic path to keys
2. JSON select to get all the keys as list of path
3. Loop through all the keys and make a dynamic path to select topNav
4. Listify topNav and other objects
Attached is the working sample to convert the topNav and banner object to key value pair.
Hope that would help you.
Best regards
Devendra