I have the following JSON structure: -

```
Afghanistan
    : { latitude: "33.93911", longitude: "67.709953" }
American Samoa
    : { latitude: "-14.270972", longitude: "-170.132217" }
Australia
    : { latitude: "-25.274398", longitude: "133.775136" }

```

How do I loop through it using Javascript or Jquery and get all the **values** like **Australia, latitude, longitude** etc? 

I am creating above JSON format from **json\_encode** function in PHP. 

Here is the original Array format from which I am creating JSON format: -

```
array (size=94)
  'India' => 
    array (size=2)
      'latitude' => string '20.593684' (length=9)
      'longitude' => string '78.96288' (length=8)
  'Pakistan' => 
    array (size=2)
      'latitude' => string '30.375321' (length=9)
      'longitude' => string '69.345116' (length=9)

```