LWP-JSON-Tiny
view release on metacpan or search on metacpan
docs/LWP-JSON-Tiny.html view on Meta::CPAN
153154155156157158159160161162163164165166167168169170171172173
my
$other_response
=
$some_other_object
-&
#62;do_stuff(...);
if
(LWP::UserAgent::JSON-&
#62;rebless_maybe($other_response)) {
do_something(
$other_response
-&
#62;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"
>&
#34;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
3233343536373839404142434445464748495051
"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.306 second using v1.01-cache-2.11-cpan-4e96b696675 )