in reply to Parsing a JSON response
$VAR1->{'address_components'}->[4]->{'long_name'}
works for me...
Hope that helps....
Update:I think that you are seeing {'address_components'} as part of the 'types' data sub-structure. It is not. "types' is a hash key at the same structural level as the hash key 'address_components'. In other words, both are keys in the same hash. 'types' references an array containing locality and political. 'address_component' references an array of hashes, one of which seems to be a duplicate of the array pointed at by the aforementioned 'types' key...
...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results...
A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is a facct
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing a JSON response
by GrandFather (Saint) on Jul 25, 2014 at 19:55 UTC | |
|
Re^2: Parsing a JSON response
by mcoblentz (Scribe) on Jul 25, 2014 at 18:24 UTC | |
|
Re^2: Parsing a JSON response
by mcoblentz (Scribe) on Jul 25, 2014 at 22:20 UTC | |
by Anonymous Monk on Jul 25, 2014 at 23:42 UTC | |
by mcoblentz (Scribe) on Jul 27, 2014 at 00:44 UTC |