Access the nested value in JSON without looping through it

This is my JSON, I want to directly get the zipCodes values from the JSON without looping through the JSON. How can I do it?

countries:[
             {
               name:'India',
               states:[{
                           name:'Orissa',
                           cities:[{
                                      name:'Sambalpur',
                                      zipCodes:{'768019','768020'}
                                  }]
                      }]
             }
             ]


Source: json

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.