On Tuesday, July 5, 2016 at 8:54:47 AM UTC+2, Ben van Staveren wrote:
>
> You want to use:
>
> my $res = $ua->get( ...)->res;
> my $sections;
> if($res->success) {
>    $sections = $res->json('/data');
> } else {
>   ...
> }
>

yes, that nearly did it:

my $res = $ua->get( ...) ;
my $sections;
if($res->success) {
   $sections = $res->res->json('/data');
} else {
  ...
}

 Thanks!

-- 
regards,
Natxo


-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to