'Loop through JSON data with unspecific index key

I have this json file below and I want to be able to loop through and print the corresponding value. e.g If I send a params "en", I should be able to print Unjha.

[
    {
       "apmc_code":1000,
       "en":"Unjha",
       "mr":"उंझा",
       "hi":"उंझा",
       "pa":"ਉਂਝਾ",
       "gu":"ઊંઝા",
       "te":"ఉంఝా",
       "kn":"ಉಂಜಾ",
       "ta":"உன்ஜா",
       "ml":"ഉൻഝാ"
    },
    {
       "apmc_code":1001,
       "en":"Jamnagar",
       "mr":"जामनगर",
       "hi":"जामनगर",
       "pa":"ਜਾਮਨਗਰ",
       "gu":"જામનગર",
       "te":"జామ్‌నగర్",
       "kn":"ಜಾಮ್‌ನಗರ",
       "ta":"ஜாம்நகர்",
       "ml":"ജാംനഗർ"
    },
 ]

Any help?



Solution 1:[1]

iterate over outer-list
    iterate over item-map
        print map.key = map.value

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jinesi Yelizati