$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
In reply to Re: Parsing a JSON response
by wjw
in thread Parsing a JSON response
by mcoblentz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |