LWP-JSON-Tiny
view release on metacpan or search on metacpan
docs/LWP-JSON-Tiny.html view on Meta::CPAN
my $other_response = $some_other_object->do_stuff(...);
if (LWP::UserAgent::JSON->rebless_maybe($other_response)) {
do_something($other_response->json_content);
}</pre>
<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>
<p>A lot of RESTful API integration involves pointless busy work with setting accept and content-type headers, remembering how Unicode is supposed to work and so on. This is a very simple wrapper around HTTP::Request and HTTP::Response that handles a...
<p>There are four classes in this distribution:</p>
<dl>
<dt><a name="LWP::JSON::Tiny"
>LWP::JSON::Tiny</a></dt>
<dd>
<p>Pulls in the other classes, and implements a <a href="#json_object" class="podlinkpod"
>"json_object"</a> method which returns a JSON object, suitable for parsing and emitting JSON.</p>
lib/LWP/JSON/Tiny.pm view on Meta::CPAN
print "Uploaded Weebl rip-off: $upload_id\n";
}
my $other_response = $some_other_object->do_stuff(...);
if (LWP::UserAgent::JSON->rebless_maybe($other_response)) {
do_something($other_response->json_content);
}
=head1 DESCRIPTION
A lot of RESTful API integration involves pointless busy work with setting
accept and content-type headers, remembering how Unicode is supposed to work
and so on. This is a very simple wrapper around HTTP::Request and
HTTP::Response that handles all of that for you.
There are four classes in this distribution:
=over
=item LWP::JSON::Tiny
( run in 0.414 second using v1.01-cache-2.11-cpan-87723dcf8b7 )