Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: json return value

by tobyink (Canon)
on Jul 14, 2013 at 01:36 UTC ( [id://1044187]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use v5.14;
    use CGI ();
    ...
    
    print $q->header("application/json");
    print $json->encode({ c => $c });
    
  2. or download this
    use v5.14;
    use HTTP::Tiny ();
    ...
    my $response = $http->post(@request);
    my $output   = $json->decode($response->{content});
    say $output->{c};
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1044187]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-03-19 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found