Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Getting error while decoding JSON object via POST method

by tobyink (Abbot)
on Feb 06, 2013 at 09:48 UTC ( #1017369=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    
    print $q->header("application/json");
    print $json->encode({ c => $c });
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
    
    my $result = $json->decode( $ua->request($req)->decoded_content );
    print $result->{c}, "\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017369]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2017-10-22 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (271 votes). Check out past polls.

    Notices?