in reply to Re^6: Help with JSON Module
in thread Help with JSON Module
"Can you help with how to go on with the JSON decode statement?"
I'm rather at a loss as to why you want to use JSON and what you want to decode.
You've just demonstated that $tesco->product_search(...) returns Perl data (as a hashref) not JSON data.
In your OP, you showed that you knew how to navigate through the data structure to get to the value you wanted:
$data->{Products}[0]{ProductId}
It seems to me that all you need is:
my $data = $tesco->product_search(...); my $prod_id = $data->{Products}[0]{ProductId};
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Help with JSON Module
by foggy3657 (Novice) on Sep 08, 2012 at 12:27 UTC | |
by kcott (Archbishop) on Sep 08, 2012 at 13:06 UTC |