title: Access value from Json object containing list
body: <p>I'm hoping someone has come across this problem also. I'm a newbie to all this, therefore excuse my lack of knowledge in advance.</p>
  
  <p>I want to access list of object and to store in a array. can anyone help me how to access the value as i am having json like: -</p>
  
  <pre><code>device = {
       "macAddress" : "00:00:00:00:00:00",
       "route" : [{"lat" : 28.35 , "lng" : 78.325},
                  {"lat" : 28.35 , "lng" : 78.325},
                  {"lat" : 28.35 , "lng" : 78.325},
                  {"lat" : 28.35 , "lng" : 78.325} ]
  } 
  </code></pre>
  
  <p>i want to get the value of route in an array i have tried using device.route but it is not accessible.</p>