in reply to Re^3: How to use a json string with nested array and nested hash elements?
in thread How to use a json string with nested array and nested hash elements?
Thanks for the code samples! It's exactly what I needed.
I'm looking at what aitap wrote and what you wrote and I see one difference:
aitap & 7Stud: my @jsonarray = @{$decoded_json->{strarray}};
Anonymous Monk: my $strarray = $decoded_json->{strarray};
I am surprised by the use of a $variable (string) instead of an @variable (array). I expected to need the same variable as aitap and 7Stud mentioned. I will need to restudy the variables and references, it's been nearly 6 years since I last wrote programs.
Thank all of you for the explanations and examples. You have been very helpful.
In Section
Seekers of Perl Wisdom