in reply to Re: Iterate JSON File
in thread Iterate JSON File
Thank you for you answer, actually it worked great
But now i want to only search for the "kind" tag and here is what i did:
for my $ob ( @{$decoded->{observations}} ) { for my $status ( @{$ob->{status}} ) { for my $kind (@{$status->{info}}){ for $elem ( sort ( keys ( %{$kind} ) ) ) { $final1 .= $kind->{$elem} .","; } } } }
I am getting an error that says that Cant use string (...) as an ARRAY ref while "stricts refs" in use at...
I think that is something related to deference, but i am not sure how to solve it, could you help me?
Regards
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Iterate JSON File
by AnomalousMonk (Archbishop) on Aug 03, 2018 at 15:27 UTC | |
Re^3: Iterate JSON File
by VinsWorldcom (Prior) on Aug 03, 2018 at 17:03 UTC |
In Section
Seekers of Perl Wisdom