<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -119,7 +119,7 @@ This is used in instance methods:
 Like json_service, by default it assumes you're getting items of the same class, you can override this like so:
 
     def messages
-      json_request(Message) do |r|
+      json_request(:class =&gt; Message) do |r|
         r.path        = &quot;/messages.json&quot;
         r.parameters  = {:user_id =&gt; self.id}        
       end
@@ -127,6 +127,19 @@ Like json_service, by default it assumes you're getting items of the same class,
 
     User.new.messages  =&gt; [Message, Message, ...]
 
+By default a json_request call will convert the JSON to objects, you can make it return something else by setting the :returning property like so:
+
+    json_request(:returning =&gt; :raw) do |r|
+      ...
+    end
+
+The returning property can be set to the following:
+
+* :raw      =&gt; the raw JSON response as a string
+* :json     =&gt; the JSON parsed to a ruby hash (through JSON.parse)
+* :response =&gt; the Voorhees::Response object
+* :objects  =&gt; casts the JSON into objects (the default)
+
 #### Voorhees::Request
 
 Both json_service and json_request create Voorhees::Request objects to do their bidding.</diff>
      <filename>README.markdown</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c0e75ca7091dbbc6f9c8b27eb90869e6fbda9031</id>
    </parent>
  </parents>
  <author>
    <name>Richard Livsey</name>
    <email>richard@livsey.org</email>
  </author>
  <url>http://github.com/rlivsey/voorhees/commit/0b0bf2b4189376a2c9b1f5ef2cea52c1df04d36b</url>
  <id>0b0bf2b4189376a2c9b1f5ef2cea52c1df04d36b</id>
  <committed-date>2009-06-30T15:33:14-07:00</committed-date>
  <authored-date>2009-06-30T15:33:14-07:00</authored-date>
  <message>update README to reflect new :returning options to json_request</message>
  <tree>f9402ee0e88006a9fd82824f60315444d6366299</tree>
  <committer>
    <name>Richard Livsey</name>
    <email>richard@livsey.org</email>
  </committer>
</commit>
