Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-10-25 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls