![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: parsing JSON for specific entriesby suaveant (Parson) |
on Aug 01, 2012 at 19:04 UTC ( #984876=note: print w/replies, xml ) | Need Help?? |
{ denotes a hash, [ denotes array, just like in Perl. You are trying to iterate through $object->{Content_ID} by dereferencing it as an ARRAY but it is a hash, with keys CNBP_021687, CNBP_021688 and CNBP_021691. The correct way to iterate would be:
In Section
Seekers of Perl Wisdom
|
|