Hi,
I would like to parse JSON string using perl.
which is very trivial up until the moment the elements name are unknown.
normally I would use:
How can I do the same assuming I have no knowledge on the elements names (I'm sure there has to be a way to access it using the index, I just could not find it)
THANKS!
I would like to parse JSON string using perl.
which is very trivial up until the moment the elements name are unknown.
normally I would use:
Code:
my @elem= @{ $decoded->{'elements'} };
foreach my $el ( @elem) {
print $el->{"attr"} . "\n";
}
THANKS!