vit has asked for the wisdom of the Perl Monks concerning the following question:
I did not test it, but sometimes even if it works this may not be the right way to do. So could you give me a right solution for this standard problem, please.$ua = LWP::UserAgent->new(); $body = $ua->get($url); $json = JSON->new->allow_nonref; $perl_scalar = $json->decode( $body->decoded_content );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parse JSON response
by kennethk (Abbot) on Jun 06, 2011 at 20:27 UTC |